Skip to content

fix(otp): drop the stray rings and show disabled in forced colors mode - #4877

Open
sulimanbenhalim wants to merge 1 commit into
saadeghi:masterfrom
sulimanbenhalim:fix-otp-forced-colors
Open

sulimanbenhalim wants to merge 1 commit into
saadeghi:masterfrom
sulimanbenhalim:fix-otp-forced-colors

Conversation

@sulimanbenhalim

Copy link
Copy Markdown
Contributor

in forced colors mode the transparent outlines otp keeps for its focus states get painted so every box has a double ring and the current box ring shows even when nothing is focused
a disabled otp also looks exactly like an enabled one

now those outlines only show in the state they're for and disabled boxes get a GrayText border like btn does

example (devtools rendering > emulate forced-colors): https://play.tailwindcss.com/zI5NcYx7jU

@github-actions

Copy link
Copy Markdown

1 component changed. Basic playground: Before vs. After.

This branch has not been deployed

No deployments
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