Skip to content

Commit e1be60a

Browse files
Copilotmfranzke
andauthored
fix: return typed values from scss functions instead of strings (#5570)
* Initial plan * fix: px-to-rem() and px-to-em() now return proper values instead of strings Co-authored-by: mfranzke <[email protected]> * Create heavy-spiders-check.md * Update dependencies to patch versions * Update heavy-spiders-check.md --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: mfranzke <[email protected]>
1 parent c1104df commit e1be60a

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

.changeset/heavy-spiders-check.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
"@db-ux/core-foundations": patch
3+
"@db-ux/core-components": patch
4+
"@db-ux/ngx-core-components": patch
5+
"@db-ux/react-core-components": patch
6+
"@db-ux/wc-core-components": patch
7+
"@db-ux/v-core-components": patch
8+
---
9+
10+
fix(SASS): return typed values from scss functions `px-to-rem` and `px-to-em` instead of strings

packages/foundations/scss/helpers/_functions.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
@use "clearfix";
44

55
@function px-to-rem($pxValue) {
6-
@return #{$pxValue * 0.0625}rem;
6+
@return ($pxValue * 0.0625) * 1rem;
77
}
88

99
@function px-to-em($pxValue) {
10-
@return #{$pxValue * 0.0625}em;
10+
@return ($pxValue * 0.0625) * 1em;
1111
}
1212

1313
$cursor-pointer: var(--db-overwrite-cursor, pointer);

0 commit comments

Comments
 (0)