Skip to content

Commit

Permalink
fix: bruk revert i stedet for unset
Browse files Browse the repository at this point in the history
Som nevnt tidligere, denne blir riktigere med tanke på hvilken verdi
vi ender opp med.
  • Loading branch information
wkillerud committed Mar 29, 2022
1 parent f4b05f1 commit 300e808
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 9 deletions.
2 changes: 1 addition & 1 deletion packages/button/button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ a.jkl-button {
}

@include jkl.helper-forced-colors-mode {
border: unset;
border: revert;
}
}

Expand Down
2 changes: 1 addition & 1 deletion packages/card/card.scss
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ $card-padding-normal: jkl.$spacing-l;
}

@include jkl.helper-forced-colors-mode {
outline: unset;
outline: revert;
border: rem(2px) solid LinkText;
}
}
Expand Down
2 changes: 1 addition & 1 deletion packages/core/links.scss
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ $link-underline-thickness--hover: jkl.rem(2px);
}

@include jkl.helper-forced-colors-mode {
outline: unset;
outline: revert;
}
}

Expand Down
4 changes: 4 additions & 0 deletions packages/datepicker/datepicker.scss
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,10 @@ $calendar-width: ($date-width * 7) + ($date-spacing * 6) + ($calendar-padding *
&__padding {
padding: $calendar-padding;
box-sizing: border-box;

@include jkl.helper-forced-colors-mode {
border: 1px solid CanvasText;
}
}

@include small-device {
Expand Down
2 changes: 1 addition & 1 deletion packages/table/table-row.scss
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ $focus-ring-width: jkl.rem(2px);
}

@include jkl.helper-forced-colors-mode {
outline: unset;
outline: revert;
}
}

Expand Down
2 changes: 1 addition & 1 deletion packages/tabs/tabs.scss
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,6 @@
}

@include jkl.helper-forced-colors-mode {
border: unset;
border: revert;
}
}
3 changes: 2 additions & 1 deletion packages/text-input/text-input.scss
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,8 @@ $text-input-selection-color--inverted: color.scale(
}

@include jkl.helper-forced-colors-mode {
border: unset;
border: revert;
backgroun-color: revert;
}
}

Expand Down
2 changes: 1 addition & 1 deletion portal/src/components/DownloadAsset/DownloadAsset.scss
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
outline: 0;

@include jkl.helper-forced-colors-mode {
outline: unset;
outline: revert;
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions portal/src/components/ExampleVideo/ExampleVideo.scss
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@
}

@include jkl.helper-forced-colors-mode {
border: unset;
border: revert;

&:focus {
outline: unset;
outline: revert;
}
}

Expand Down

0 comments on commit 300e808

Please sign in to comment.