Bootstrap Forced Colors CSS for Windows High Contrast Themes #40607
coliff
started this conversation in
Show & Tell
Replies: 1 comment
-
Hey @coliff!
I'll add that to my to-do list. Maybe some of the changes you've made can be integrated into v5 already. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've created a stylesheet by using the
forced-colors: active
media query which enhances the accessibility of Bootstrap 5 when using with Hight Contrast themes in Windows.Some fixes made are a bit opinionated, e.g. increasing border width from 1px to 2px on form inputs to counter the fact that there is no box-shadow.
It'd be great to see some/most of these fixes be made to Bootstrap in the future. For now though, users can use this stylesheet to improve things for Windows users with High Contrast themes.
How to test with Forced Colors Mode Emulation in Chrome / Edge
Interesting links about Windows High Contrast Mode:
Beta Was this translation helpful? Give feedback.
All reactions