From 5cc031bed77ff98d0d0ed6470b86baf8e80ff436 Mon Sep 17 00:00:00 2001 From: Maximilian Franzke <787658+mfranzke@users.noreply.github.com> Date: Thu, 4 Dec 2025 07:17:55 +0100 Subject: [PATCH] fix: Return typed values from scss functions instead of strings adapted from https://github.com/db-ux-design-system/core-web/pull/5570 --- source/css/helpers/_functions.scss | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/css/helpers/_functions.scss b/source/css/helpers/_functions.scss index a1f62422891..345f139f1c8 100644 --- a/source/css/helpers/_functions.scss +++ b/source/css/helpers/_functions.scss @@ -1,10 +1,10 @@ @import "../db-ui-core.variables"; @function to-rem($pxValue) { - @return #{$pxValue * $dbBaseFontSizeSass}rem; + @return ($pxValue * $dbBaseFontSizeSass) * 1rem; } @function to-em($pxValue) { - @return #{$pxValue * $dbBaseFontSizeSass}em; + @return ($pxValue * $dbBaseFontSizeSass) * 1rem; } // Mixin wrappers around the SCSS placeholders