-
Notifications
You must be signed in to change notification settings - Fork 198
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(picker): high contrast and other color fixes (#2326)
* fix(picker): whcm - fix focus indicator and border colors High contrast mode fixes for Picker. By default, the focus indicator outline was showing on the picker when it did not have focus. The colors were also reversed; these now mirror the focus indicator color and border color combination shown in textfield when keyboard focused. Also fixes some other high contrast colors that were a little off on hover and when the picker was open. * fix(picker): whcm - use matching background-foreground pair The foreground ButtonText needs to be paired with the matching background pair ButtonFace to ensure appropriate contrast (per W3C system colors spec). * fix(picker): whcm cleanup and fixes - Use more appropriate ButtonBorder system color. - Make sure quiet variation has a matching background-foreground pair instead of having a transparent background with ButtonText foreground to ensure appropriate contrast. - Fix extra text backplate showing in WHCM edge default theme. - Simplify disabled border color by moving to a custom property. - Remove unnecessary repeated border-width declarations that were already inherited. * refactor(picker): whcm - prune redundant custom properties There were a lot of unnecessary highcontrast specific custom properties that were all repeating the same values. Refactors these to slim them down significantly, reducing the number of custom properties and making the WHCM styles much more readable. There was no need to have a highcontrast property for every state + open when the colors only change in very few places. * refactor(picker): organize some quiet styles Move some quiet styles to existing quiet selector in the file, to keep things organized. The quiet disabled focus-visible rule from the moved block of CSS could be removed because it didn't do anything. * fix(picker): fix some color issues with invalid and disabled - Fix issue with "Closed and Disabled with Thumbnails" docs example showing the invalid border color on hover by adding a :not selector. The invalid hover rules were more specific than the disabled rules. - Fix wrong hover color appearing in WHCM on invalid examples. * fix(picker): background color fix for quiet variant Fix issue with grey background color showing on hover/click with the quiet variant. Due to the styles for .is-open being more specific.
- Loading branch information
Showing
1 changed file
with
72 additions
and
96 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters