Skip to content

Commit

Permalink
a11y: always preset font and background color (#5703)
Browse files Browse the repository at this point in the history
  • Loading branch information
deleonio committed Dec 7, 2023
2 parents 32ce7c1 + d2efdb1 commit dd80bf9
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/components/src/components/a11y.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@
* Minimum size of interactive elements.
*/
--a11y-min-size: 44px;
/*
* No element should be used without a background and font color whose contrast ratio has
* not been checked. By initially setting the background color to white and the font color
* to black, the contrast ratio is ensured and explicit adjustment is forced.
*/
background-color: white;
color: black;
/*
* Verdana is an accessible font that can be used without requiring additional loading time.
*/
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit dd80bf9

Please sign in to comment.