-
-
Notifications
You must be signed in to change notification settings - Fork 47.5k
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
added card header style mixins #5354
Conversation
@kossel, thanks for your PR! By analyzing the history of the files in this pull request, we identified @afc163, @simaQ and @ddcat1115 to be potential reviewers. |
Codecov Report
@@ Coverage Diff @@
## feature-2.9 #5354 +/- ##
============================================
Coverage 82.59% 82.59%
============================================
Files 162 162
Lines 1620 1620
Branches 550 550
============================================
Hits 1338 1338
Misses 282 282 Continue to review full report at Codecov.
|
|
||
// Card | ||
// --- | ||
@card-head-height: 48px; |
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.
head
=> header
?
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.
Hmm the current class uses 'head' as name, I just want to make it consistent, or should I change to header?
https://github.com/ant-design/ant-design/blob/feature-2.9/components/card/style/index.less#L22
components/card/style/index.less
Outdated
@@ -32,7 +33,7 @@ | |||
width: 100%; | |||
overflow: hidden; | |||
white-space: nowrap; | |||
color: @heading-color; | |||
color: @card-head-bgcolor; |
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.
It should be @card-head-color
?
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.
ops you are right, I will fix that
components/style/themes/default.less
Outdated
// --- | ||
@card-head-height: 48px; | ||
@card-head-color: @heading-color; | ||
@card-head-bgcolor: @component-background; |
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.
@card-head-background
Fixed |
close #5351 |
added card header style mixins (ant-design#5354)
Less mixin for card header style