diff --git a/.changeset/heavy-spiders-check.md b/.changeset/heavy-spiders-check.md new file mode 100644 index 000000000000..7d6c415d54c5 --- /dev/null +++ b/.changeset/heavy-spiders-check.md @@ -0,0 +1,10 @@ +--- +"@db-ux/core-foundations": patch +"@db-ux/core-components": patch +"@db-ux/ngx-core-components": patch +"@db-ux/react-core-components": patch +"@db-ux/wc-core-components": patch +"@db-ux/v-core-components": patch +--- + +fix(SASS): return typed values from scss functions `px-to-rem` and `px-to-em` instead of strings diff --git a/packages/foundations/scss/helpers/_functions.scss b/packages/foundations/scss/helpers/_functions.scss index d667b59cb864..8d113cd3714e 100644 --- a/packages/foundations/scss/helpers/_functions.scss +++ b/packages/foundations/scss/helpers/_functions.scss @@ -3,11 +3,11 @@ @use "clearfix"; @function px-to-rem($pxValue) { - @return #{$pxValue * 0.0625}rem; + @return ($pxValue * 0.0625) * 1rem; } @function px-to-em($pxValue) { - @return #{$pxValue * 0.0625}em; + @return ($pxValue * 0.0625) * 1em; } $cursor-pointer: var(--db-overwrite-cursor, pointer);