outline: none
support
#12768
ShayanTheNerd
started this conversation in
Ideas
Replies: 1 comment
-
For the reason that
For what it's worth, you could use an arbitrary property class to apply |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
There's already this utility called
outline-none
, but it doesn't quite act as the name suggests. We'd expect it to generateoutline: none
oroutline-style: none
CSS style, but instead, it's adding a 2px, solid, transparent outline with an offset of 2px. TBH, I'm not really sure why this is how it is. What I do know, though, is that when I see a utility calledoutline-none
, I'd expect it to actually remove the outline. A real-world example could be when you want to get rid of Firefox's not-so-beautiful outline and implement a custom one.I'd like to know about the reason behind this behavior, in addition to having the utility do exactly as the name says; so that we won't have to write something like
outline: none
in Vanilla CSS.Beta Was this translation helpful? Give feedback.
All reactions