Skip to content

Commit

Permalink
fix: use syntax compatible with postcss-calc
Browse files Browse the repository at this point in the history
postcss-calc isn't happy about the `calc()` function without a `var()` (see #433).
This new syntax is compatible and produces the same output in our distributed file.
  • Loading branch information
gregtyler committed Jan 9, 2023
1 parent 13e6b08 commit 6dec28d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/moj/objects/_scrollable-pane.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
to right,
$scrollableBgColor,
$scrollableBgColor,
$scrollableTransparentColor calc($scrollableShadowSize * 2)
$scrollableTransparentColor calc(var($scrollableShadowSize) * 2)
),
radial-gradient(
farthest-side at 0 50%,
Expand All @@ -20,7 +20,7 @@
to left,
$scrollableBgColor,
$scrollableBgColor,
$scrollableTransparentColor calc($scrollableShadowSize * 2)
$scrollableTransparentColor calc(var($scrollableShadowSize) * 2)
),
radial-gradient(
farthest-side at 100% 50%,
Expand Down

0 comments on commit 6dec28d

Please sign in to comment.