Skip to content

Commit 5cc031b

Browse files
authored
fix: Return typed values from scss functions instead of strings
adapted from db-ux-design-system/core-web#5570
1 parent cbab1bc commit 5cc031b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/css/helpers/_functions.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
@import "../db-ui-core.variables";
22

33
@function to-rem($pxValue) {
4-
@return #{$pxValue * $dbBaseFontSizeSass}rem;
4+
@return ($pxValue * $dbBaseFontSizeSass) * 1rem;
55
}
66
@function to-em($pxValue) {
7-
@return #{$pxValue * $dbBaseFontSizeSass}em;
7+
@return ($pxValue * $dbBaseFontSizeSass) * 1rem;
88
}
99

1010
// Mixin wrappers around the SCSS placeholders

0 commit comments

Comments
 (0)