-
Notifications
You must be signed in to change notification settings - Fork 4.5k
outline-hidden
only applies transparent outline when forced-colors
is active?
#16926
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
Comments
outline-hidden
applies incorrect CSS according to docs/intellisenseoutline-hidden
only applies transparent outline when forced-colors
is active?
Hey!
We thought it was unexpected that |
I did notice that |
Ah yes, that's what I'm referring to. In v3 I was able to set all my outline styles alongside I'm realizing now though that this was probably an incorrect approach from the get-go and I should only be setting the outline style on focus-visible |
…lors` mode (#16943) Part-of #16926 I noticed that `outline-hidden` would not set `--tw-outline-style` (contrary to `outline-none`), thus stacking it with other outline classes won't work as expected: https://play.tailwindcss.com/Y0lPGgekYh
Gotcha, yeah that was indeed an oversight, I've added it to |
What version of Tailwind CSS are you using?
4.0.9
What build tool (or framework if it abstracts the build tool) are you using?
Vite 6.0.11
What version of Node.js are you using?
22.13.1
What browser are you using?
Chromium, Firefox, Safari
What operating system are you using?
MacOS
Reproduction URL
https://play.tailwindcss.com/SOQPkOEDC9
Describe your issue
I'm currently upgrading a project from v3 to v4. The upgrade guide states that
outline-none
was renamed tooutline-hidden
, although this is only true whenforced-colors
media feature is active. Curious why this change was made, and if there's another utility class I could use to have the same behaviour as v3.The text was updated successfully, but these errors were encountered: