Skip to content

Commit

Permalink
Fix button state warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
dakotablair committed May 6, 2024
1 parent d6a9295 commit 00cac95
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/common/components/Button.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,15 @@
color: use-color("white");
}

@if (use-color($state + "-dark")) {
@if (map-has-key($palette, $state + "-dark")) {
&:hover {
background-color: use-color($state + "-dark");
color: use-color("white");
opacity: 1;
}
}

@if (use-color($state + "-dark")) {
@if (map-has-key($palette, $state + "-darker")) {
&:focus {
background-color: use-color($state + "-darker");
color: use-color("white");
Expand All @@ -72,15 +72,15 @@
color: use-color($state);
font-weight: bold;

@if (use-color($state + "-dark")) {
@if (map-has-key($palette, $state + "-dark")) {
&:hover {
background-color: use-color("light-gray");
color: use-color($state + "-dark");
opacity: 1;
}
}

@if (use-color($state + "-dark")) {
@if (map-has-key($palette, $state + "-darker")) {
&:focus {
color: use-color($state + "-darker");
}
Expand Down

0 comments on commit 00cac95

Please sign in to comment.