Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prefers-Contrast Media Query #2

Open
coliff opened this issue Apr 7, 2022 · 0 comments
Open

Prefers-Contrast Media Query #2

coliff opened this issue Apr 7, 2022 · 0 comments
Assignees

Comments

@coliff
Copy link
Member

coliff commented Apr 7, 2022

There are many useful CSS media queries to aid accessibility such as prefers-reduced-motion, prefers-reduced-transparency.

A relatively new one, prefers-contrast was recently added to Chrome and Edge. It is already supported in Safari.

Chrome Status details:
https://www.chromestatus.com/feature/5646323212615680

Browser Coverage:
https://caniuse.com/mdn-css_at-rules_media_prefers-contrast

It could be helpful to make some optimizations in Modus Bootstrap, or at least give some guidance on the Style Guide site. For example, the default text color in Modus could change from Trimble Gray to the darker 'Gray 10' (#171c1e).

@media (prefers-contrast: more) {
 body {  
  color: #171c1e;
 }
}
@coliff coliff self-assigned this Apr 8, 2022
@coliff coliff transferred this issue from another repository Jul 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant