Skip to content

Commit

Permalink
fix(Collapse): set content to $font-lineheight-2 fix alibaba-fusion#3601
Browse files Browse the repository at this point in the history
  • Loading branch information
bindoon authored and lakerswgq committed Dec 21, 2021
1 parent d0230a8 commit 6b15928
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/card/scss/variable.scss
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ $card-body-hide-divider-padding-top: $s-zero !default;
/// @namespace size/content
$card-content-font-size: $font-size-body-1 !default;

// [deprecated in 2.x] should fix to linehgiht-2, do not need to config
/// line height
/// @namespace size/content
$card-content-line-height: $font-lineheight-2 !default;
Expand Down
3 changes: 2 additions & 1 deletion src/collapse/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@

&-panel-title {
position: relative;
line-height: $collapse-title-height;
line-height: $font-lineheight-2;
background: $collapse-title-bg-color;
font-size: $collapse-title-font-size;
font-weight: $collapse-title-font-weight;
Expand All @@ -55,6 +55,7 @@

&-panel-content {
height: 0;
line-height: $font-lineheight-2;
padding: 0 $collapse-content-padding-x;
background: $collapse-content-bg-color;
font-size: $collapse-content-font-size;
Expand Down

0 comments on commit 6b15928

Please sign in to comment.