Skip to content

Commit 76e551c

Browse files
authored
refactor(material/core): fix deprecation warning (#25622)
Fixes a deprecation warning, because we were using a slash for division instead of `math.div`.
1 parent 7355054 commit 76e551c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/material/core/typography/_all-typography.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
@return $x;
5757
}
5858
@if meta.type-of($x) == 'number' and math.unit($x) == 'rem' {
59-
@return ($x / 1rem) * $px-per-rem;
59+
@return math.div($x, 1rem) * $px-per-rem;
6060
}
6161
@else {
6262
@return $x;

0 commit comments

Comments
 (0)