-
-
Notifications
You must be signed in to change notification settings - Fork 48.7k
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
feat(theme): adjust font-size in compact mode #23135
Conversation
feature branch |
With compact theme mode, we adjust default font-size from 14px to 12px. Closes #23015
9e5e94f
to
de97b3e
Compare
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 b9d6a29:
|
Codecov Report
@@ Coverage Diff @@
## feature #23135 +/- ##
===========================================
- Coverage 98.50% 98.50% -0.01%
===========================================
Files 363 363
Lines 7237 7236 -1
Branches 1966 2004 +38
===========================================
- Hits 7129 7128 -1
Misses 108 108
Continue to review full report at Codecov.
|
components/alert/style/index.less
Outdated
@@ -113,7 +113,7 @@ | |||
|
|||
&-with-description &-icon { | |||
position: absolute; | |||
top: 16px; | |||
top: @alert-icon-top; |
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.
这个值最好能根据标题大小和 alert padding top 算出来。
components/style/themes/default.less
Outdated
@@ -854,6 +855,7 @@ | |||
@alert-with-description-padding: @padding-md - 1px 15px @padding-md - 1px 64px; | |||
@alert-icon-top: 8px + @font-size-base * @line-height-base / 2 - @font-size-base / 2; | |||
@alert-with-description-icon-size: 24px; | |||
@alert-with-description-icon-top: @padding-md; |
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.
这个 top 应该是可以根据 @alert-with-description-padding 算出来?
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
就好了。
7616119
to
52862af
Compare
从 v4.1.4 到 v4.2.4 ,紧凑模式下的字体和间距感觉有点太小了,应该怎么自定义配置回 4.1.4 的那种效果呢? |
Closes #23015
🤔 This is a ...
🔗 Related issue link
Closes #23015
💡 Background and solution
With compact theme mode, we adjust default font-size from 14px to 12px.
📝 Changelog
☑️ Self Check before Merge