We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
2.32.1
3.2.37
chrome103
win11
https://www.naiveui.com/zh-CN/light/components/dropdown
浅色模式下,鼠标移入dropdown的选项时,图标消失
使用自定义的图标(非n-icon),在浅色模式下需要给 .n-dropdown-option-body__prefix 的 z-index 设为1,图标才能显示出来,深色模式正常,暂未对比出差异在哪
父元素的before(.n-dropdown-menu .n-dropdown-option .n-dropdown-option-body::before)是定位元素,盖住了图标
The text was updated successfully, but these errors were encountered:
试着给你的自定义图标套一层 n-icon
n-icon
Sorry, something went wrong.
fix(dropdown): option prefix & suffix's z-index, closes tusen-ai#3433
55d123d
fix(dropdown): option prefix & suffix's z-index, closes #3433 (#3436)
8341319
Successfully merging a pull request may close this issue.
TuSimple/naive-ui version (版本)
2.32.1
Vue version (Vue 版本)
3.2.37
Browser and its version (浏览器及其版本)
chrome103
System and its version (系统及其版本)
win11
Node version (Node 版本)
Reappearance link (重现链接)
https://www.naiveui.com/zh-CN/light/components/dropdown
Reappearance steps (重现步骤)
浅色模式下,鼠标移入dropdown的选项时,图标消失
Expected results (期望的结果)
使用自定义的图标(非n-icon),在浅色模式下需要给 .n-dropdown-option-body__prefix 的 z-index 设为1,图标才能显示出来,深色模式正常,暂未对比出差异在哪
Actual results (实际的结果)
父元素的before(.n-dropdown-menu .n-dropdown-option .n-dropdown-option-body::before)是定位元素,盖住了图标
Remarks (补充说明)
The text was updated successfully, but these errors were encountered: