-
-
Notifications
You must be signed in to change notification settings - Fork 49.3k
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: fix Button small size align when customize theme #24097
Conversation
dda45e4#r39119320 引起的,@AshoneA 看看移除掉有没有坑。 |
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 eb50231:
|
Codecov Report
@@ Coverage Diff @@
## master #24097 +/- ##
=======================================
Coverage 98.82% 98.82%
=======================================
Files 364 364
Lines 7297 7297
Branches 2031 2031
=======================================
Hits 7211 7211
Misses 86 86 Continue to review full report at Codecov.
|
有点问题,紧凑模式下 https://preview-24097-ant-design.surge.sh/components/button/#components-button-demo-size 单 icon 的情况下样式不对。 这个 bug 我看着像是 less 那 padding 算的有点问题 |
紧凑模式下小号按钮已经很小了,默认的 14px * 1.66666 会超出高度,导致错位。这里调整为紧凑模式下 icon-only 的图标 size 和标准按钮 size 一致(按钮很很小了,这个差距意义不大)。 |
components/style/themes/default.less
Outdated
@@ -62,15 +62,15 @@ | |||
@text-selection-bg: @primary-color; | |||
@font-variant-base: tabular-nums; | |||
@font-feature-settings-base: 'tnum'; | |||
@font-size-base: 14px; | |||
@font-size-base: 12px; |
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.
为啥要改默认的 font-size 和 line-height, 影响很大啊
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.
改错了,已修正。
/rebase |
dc5ef97
to
8a174b3
Compare
🤔 This is a ...
🔗 Related issue link
close #24089
💡 Background and solution
dda45e4#r39119320
📝 Changelog
☑️ Self Check before Merge