Skip to content

Commit

Permalink
fix(styles): card title, subtitle font-size (#3856)
Browse files Browse the repository at this point in the history
  • Loading branch information
platon-rov committed Sep 7, 2022
1 parent 38036e4 commit 5963276
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/styles/card.scss
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,8 @@ $fd-card-header-outline-offset: 0.0625rem !default;
@include line-clamp(3);

font-family: var(--sapFontHeaderFamily);
font-size: var(--sapFontHeader5Size);
font-size: var(--fdCard_Title_Font_Size);
font-weight: var(--fdCard_Title_Font_Weight);
color: var(--sapTile_TitleTextColor);
word-wrap: break-word;
max-height: 4.2rem;
Expand Down
2 changes: 2 additions & 0 deletions src/styles/theming/common/card/_sap_fiori.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,6 @@
--fdCard_Bottom_Positioned_Header_Padding: 1rem;
--fdCard_Footer_Padding: 1rem;
--fdCard_Footer_Actions_Item_Spacing: 0.5rem;
--fdCard_Title_Font_Size: var(--sapFontHeader5Size);
--fdCard_Title_Font_Weight: var(--sapFontHeaderWeight);
}
2 changes: 2 additions & 0 deletions src/styles/theming/common/card/_sap_horizon.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,6 @@
--fdCard_Bottom_Positioned_Header_Padding: 0.75rem 1rem 1rem;
--fdCard_Footer_Padding: 0.75rem 1rem 1rem;
--fdCard_Footer_Actions_Item_Spacing: 0.5rem;
--fdCard_Title_Font_Size: var(--sapFontHeader6Size);
--fdCard_Title_Font_Weight: bold;
}

0 comments on commit 5963276

Please sign in to comment.