Skip to content

Commit

Permalink
Flip the order of some values in a calc
Browse files Browse the repository at this point in the history
This fixes build crashes in CRA thanks to a parser bug that explodes
when it encounters the original order (but inverted is fine)
  • Loading branch information
BPScott committed Jan 22, 2020
1 parent 4fd27a0 commit 591e7a3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/styles/shared/_controls.scss
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,10 @@
&::before {
content: '';
position: absolute;
top: calc(var(--control-border-width) * -1);
right: calc(var(--control-border-width) * -1);
bottom: calc(var(--control-border-width) * -1);
left: calc(var(--control-border-width) * -1);
top: calc(-1 * var(--control-border-width));
right: calc(-1 * var(--control-border-width));
bottom: calc(-1 * var(--control-border-width));
left: calc(-1 * var(--control-border-width));
border-radius: var(--p-border-radius-base);
background-color: var(--p-action-interactive);
opacity: 0;
Expand Down

0 comments on commit 591e7a3

Please sign in to comment.