Skip to content

Commit

Permalink
Feat: Let base font size be inherited from surrounding text
Browse files Browse the repository at this point in the history
This makes cookie consent font size be correctly inherited even on sites that use
10px root font size for easier calculations.
  • Loading branch information
adamkudrna committed Nov 30, 2021
1 parent efe992e commit c12341d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/scss/_theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
// By using Spirit design tokens, all Spirit-based projects benefit from plug-and-play setup.

@use '@tokens' as tokens;
@use 'tools';

// Stylelint and Prettier are clashing on long lines. Let's prefer Stylelint.
/* prettier-ignore */
Expand All @@ -17,7 +18,7 @@
// Typography
// ==========

--lmcccm-p-base-font-size: var(--lmcccm-base-font-size, #{tokens.$font-size-base});
--lmcccm-p-base-font-size: var(--lmcccm-base-font-size, #{tools.rem2em(tokens.$font-size-base)});
--lmcccm-p-font-family: var(--lmcccm-font-family, #{tokens.$font-family-default});

//
Expand Down

0 comments on commit c12341d

Please sign in to comment.