-
-
Notifications
You must be signed in to change notification settings - Fork 49.2k
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: 💄 update Menu.Item horizontal style #25622
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 c7973f7:
|
改了啥? |
99d5357
to
7d36a24
Compare
Codecov Report
@@ Coverage Diff @@
## feature #25622 +/- ##
========================================
Coverage 99.52% 99.52%
========================================
Files 374 374
Lines 7292 7292
Branches 1988 1988
========================================
Hits 7257 7257
Misses 35 35 Continue to review full report at Codecov.
|
/rebase |
7d36a24
to
065f334
Compare
|
前两点有道理,没考虑到。第三点我感觉是有点困难的,昨晚写的时候没想出来不改的方法,得再想想 |
065f334
to
0e990a7
Compare
padding: @menu-item-padding; | ||
padding-right: 0; | ||
padding-left: 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.
padding: @menu-item-padding; | |
padding-right: 0; | |
padding-left: 0; | |
padding: @menu-item-padding 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.
这个不行吧?我印象里是 x x x x 形式的。
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.
可以的,你试试先。
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.
按照现在的 0 20px 应该没问题,但是这样没有扩展性了,一旦用户设定一个 4 个单位的就会挂掉
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.
0 20px
反了?
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.
现在是 [上下 0,左右 20],afc 的写法会变成 [[上 0,左右 20] 下 0]。但是如果有人调过这个,来个 1px 2px 3px 4px
,变成 1px 2px 3px 4px 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.
那现在这样就能 work 了 😂,我感觉没啥问题
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.
也不解决问题的,如果用户写了 1px 2px 3px 4px
,你的下面覆盖了 padding-left|right
它就变成了 1px 0 3px
。如果是希望用户自定义,看起来应该是 menu-item-padding-vertical
和 menu-item-padding-horizontal
👍 看上去挺好的,这个 changelog 回头要加粗,感觉是挺大的设计变化。 |
bd55898
to
c7973f7
Compare
Menu 水平模式的蓝色指示线宽度现在和文字一样长。 |
Fixed |
[中文版模板 / Chinese template]
🤔 This is a ...
🔗 Related issue link
💡 Background and solution
Make active border and dropdown width the same as item content.
📝 Changelog
horizontal
mode.☑️ Self Check before Merge