Skip to content

Commit

Permalink
refactor(button): use variables instead of css
Browse files Browse the repository at this point in the history
  • Loading branch information
mlogsdon18 committed Jun 30, 2023
1 parent 5aab979 commit 9e003c4
Showing 1 changed file with 7 additions and 16 deletions.
23 changes: 7 additions & 16 deletions components/button/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -255,22 +255,13 @@ a.spectrum-Button {
--highcontrast-button-content-color-default: ButtonFace;
--highcontrast-button-background-color-disabled: ButtonFace;



/* simplified for a lot of state for high contrast mode */
&:active,
&:hover,
&:focus-ring,
&.is-focused {
background-color: Highlight;
}
.spectrum-Button-label {
forced-color-adjust: none;
}

&:disabled {
background-color: ButtonFace;
}
--highcontrast-button-background-color-hover: Highlight;
--highcontrast-button-background-color-down: Highlight;
--highcontrast-button-background-color-focus: Highlight;
--highcontrast-button-content-color-hover: ButtonFace;
--highcontrast-button-content-color-down: ButtonFace;
--highcontrast-button-content-color-focus: ButtonFace;

}
}
}
Expand Down

0 comments on commit 9e003c4

Please sign in to comment.