-
-
Notifications
You must be signed in to change notification settings - Fork 50.8k
New issue
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
style: optimization dropdown menu style #21768
Conversation
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 7bbaa42:
|
应该用计算求值,不能变量转 magic number …… |
@padding-xs 是 变量里 定义最小的了。。。 那这样,就不动 right |
Codecov Report
@@ Coverage Diff @@
## master #21768 +/- ##
=======================================
Coverage 97.88% 97.88%
=======================================
Files 305 305
Lines 7003 7003
Branches 1889 1889
=======================================
Hits 6855 6855
Misses 148 148 Continue to review full report at Codecov.
|
@zombieJ 样式本身的 padding + 图片的 right + 图标的大小 |
图标的 我觉得可以把 right 设为 0,然后调整 |
@yoyo837 你觉得如何? |
两种都是修改dropdown的样式,影响只是dropdown,而现在就是在改dropdown, 所以我倾向把icon的margin 均摊到两边。 |
@@ -189,6 +189,7 @@ | |||
} | |||
|
|||
&-icon { | |||
margin-right: 0; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里重置一下就行了。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
之前一版 是用的原来的
但是 8+8 16px 距离右侧边距有点太大了
@afc163 大佬,你改了一下,有点小问题呀 menu 被图标覆盖,没显示全。如果要保持 submenu-arrow 这个不变 &-submenu-title 要调整 如果 submenu-arrow 为 right 为 0 这两种就是图标和边界的距离不一样,感觉这两种距离看着 都可以。 |
再发补充PR |
补充 PR 和 平时的 PR 一样吗 |
🤔 This is a ...
🔗 Related issue link
close #21767
💡 Background and solution
📝 Changelog
☑️ Self Check before Merge
View rendered components/dropdown/demo/overlay-visible.md
View rendered components/dropdown/index.zh-CN.md