Replies: 4 comments 8 replies
-
Hey! That's an interesting point indeed. As you said, I don't think there is a way to undo a Pinging @adamwathan on this. By the way, it's quite possible that you learned about the |
Beta Was this translation helpful? Give feedback.
-
Hey! What will be your opinion here? Would a PR adding |
Beta Was this translation helpful? Give feedback.
-
Any update on this? |
Beta Was this translation helpful? Give feedback.
-
Any updates? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
If I'm not mistaken, Tailwind doesn't offer a utility that cancels
ring-inset
once it's set, so e.g. you cannot have an inset ring on mobile, and outset ring on larger screens (unless you use amax-width
media query).My suggestion is to add either a
ring-outset
orring-no-inset
utility which sets--tw-ring-inset
to an empty value:Setting a custom property to an empty value is valid and is a perfect solution for this use case. I currently cannot find a reference where I learned about this, it's a bit hard to google, but you can see that Chrome doesn't cross it out:
and, ultimately, that this achieves the desired effect. (If it was invalid, the browser would just ignore it.)
Beta Was this translation helpful? Give feedback.
All reactions