Skip to content

The selected element of Radio Component adds z-index: 1 #4138

@Hapigs

Description

@Hapigs
  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

2.1.4

Environment

macOS Big Sur 11.3.1 Chrome 90.0.4430.212 Vue 2.6.11

Reproduction link

https://github.com/Hapigs/antd-component-demo

Steps to reproduce

1.可在 https://github.com/Hapigs/antd-component-demo 项目中查看
2. 如果 Radio 组件和一个 fixed 元素在重叠时,Radio 选中的的标签会遮挡住这个fixed元素
3.经查看是Radio 组件给选中的标签添加了 z-index: 1, 导致层级过高
4. 如果需要正常显示,需要手动给 fixed 元素设置z-index为1或更大的值来保证层级.

What is expected?

希望去除掉z-index: 1 的样式设置,业务代码不用写z-index来提高层级

What is actually happening?

Radio 组件选中的标签元素层级超过了正常 fixed 的元素

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions