@cyber-harbour/ui 1.0.58 → 1.0.59
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/Theme/utils.ts +1 -1
package/package.json
CHANGED
package/src/Theme/utils.ts
CHANGED
|
@@ -124,7 +124,7 @@ export const convertPaletteToRem = (
|
|
|
124
124
|
result[key] = convertPaletteToRem(value, baseSize, key);
|
|
125
125
|
}
|
|
126
126
|
// If value is a string and contains 'px', convert it to rem
|
|
127
|
-
else if (typeof value === 'string' && value.
|
|
127
|
+
else if (typeof value === 'string' && /^\d+(\.\d+)?px$/.test(value.trim())) {
|
|
128
128
|
result[key] = pxToRem(value, baseSize);
|
|
129
129
|
}
|
|
130
130
|
// Handle numeric values that represent pixels for specific properties
|