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

Use normal checkbox and radio appearance in forced-colors mode #152

Merged
merged 2 commits into from
Nov 10, 2023

Conversation

thecrypticace
Copy link
Contributor

In the Windows theme "High Contrast White" our checked checkboxes weren't distinguishable from unchecked ones. This happens because colors are overridden by the browser / OS but url() background images are still displayed — and our checkmark SVG background has fill="white".

This resets the checkbox (and radio buttons) to appearance: auto such that the appearance is entirely controlled by the browser in forced colors mode.

Copy link

vercel bot commented Nov 10, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
tailwindcss-forms ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 10, 2023 7:23pm

@thecrypticace thecrypticace merged commit 8d2b06f into master Nov 10, 2023
2 checks passed
@thecrypticace thecrypticace deleted the fix/forced-colors branch November 10, 2023 19:25
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

Successfully merging this pull request may close these issues.

1 participant