Skip to content

Commit

Permalink
Change html font size to 100% so browser font size settings are respe… (
Browse files Browse the repository at this point in the history
#3475)

Co-authored-by: rmccar <[email protected]>
  • Loading branch information
admilne and rmccar authored Jan 24, 2025
1 parent 0d70543 commit d3d5733
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/scss/base/_typography.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
html {
@include font-smoothing;

font-size: $base;
font-size: calc((100% / 16) * strip-unit($base));
}

body {
Expand Down
2 changes: 1 addition & 1 deletion src/scss/helpers/_mq.scss
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
/// @return {Number} - Unitless number
@function strip-unit($number) {
@if meta.type-of($number) == 'number' and not math.is-unitless($number) {
@return $number / ($number * 0 + 1);
@return math.div($number, ($number * 0 + 1));
}

@return $number;
Expand Down

0 comments on commit d3d5733

Please sign in to comment.