Open maxkarkowski opened 1 week ago
We can use the forced-colors
media query to define the element colors in high contrast mode. A temporary solution for Tailwind users might be this. For plain CSS, we can create a custom class and adjust its colors using the forced-colors
media query.
Thank you for mentioning this issue @maxkarkowski
Bug report
Current Behavior
User with a high contrast mode can't see the radio buttons, because there are not real elements.
Expected behavior
Due to Accessibility reasons all elements should also be visible for users with high contrast mode on.
Reproducible example
CodeSandbox Template
enable high contrast mode via web developer tools
Suggested solution
make the default and the selected state of a radio button visible in high contrast mode. maybe some default css for forced-colors media query
Additional context
could be also relevant for checkbox components
Your environment