Skip to content

Commit

Permalink
[New Theme] Remove negative letter-spacing from default font
Browse files Browse the repository at this point in the history
* To prevent changes in OuiTitle, the variants that inherited their `letter-spacing` were modified to explicitly have the old value.

Signed-off-by: Miki <miki@amazon.com>
  • Loading branch information
AMoo-Miki committed Jun 19, 2023
1 parent bd97fe4 commit 1db3193
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
@mixin ouiFont {
font-family: var(--oui-font-family);
font-weight: $ouiFontWeightRegular;
letter-spacing: -.005em;
-webkit-text-size-adjust: 100%;
-ms-text-size-adjust: 100%;
font-kerning: normal;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,13 @@ $ouiTitles: (
'font-size': $ouiFontSizeXS,
'line-height': lineHeightFromBaseline(3),
'font-weight': $ouiFontWeightBold,
'letter-spacing': -.005em,
),
'xxs': (
'font-size': $ouiFontSizeS,
'line-height': lineHeightFromBaseline(3),
'font-weight': $ouiFontWeightBold,
'letter-spacing': -.005em,
),
'xs': (
'font-size': $ouiFontSize,
Expand Down

0 comments on commit 1db3193

Please sign in to comment.