Skip to content

Commit

Permalink
fix calc detection in convertRemToPx.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
Willy Brauner authored Nov 30, 2023
1 parent c492424 commit 7fd31c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/front/src/libs/dom/convertRemToPx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const convertRemToPx = (pxValue: number): number => {
* @returns
*/
const _convertFontSizeCssVarToPx = (cssUnitValue: string): number => {
const isCalc = cssUnitValue.startsWith("calc")
const isCalc = cssUnitValue.includes("calc")
const isVw = cssUnitValue.endsWith("vw")
const isVh = cssUnitValue.endsWith("vh")

Expand Down

0 comments on commit 7fd31c2

Please sign in to comment.