Skip to content

Commit

Permalink
fix calc detection in convertRemToPx.ts (#166)
Browse files Browse the repository at this point in the history
Co-authored-by: Willy Brauner <[email protected]>
  • Loading branch information
willybrauner and Willy Brauner authored Jan 8, 2024
1 parent c492424 commit a56b180
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 a56b180

Please sign in to comment.