Adding focus to buttons #3795
Unanswered
eduardonwa
asked this question in
Help
Replies: 1 comment
-
Hey! It's a little bit tricky - if you want to use Here's a little Tailwind Play to demonstrate that: https://play.tailwindcss.com/7DMhLeoNfu?file=config In our docs website's config file, we do have under the hood these variants enabled for it to work in the examples 👍 If you're using the new |
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.
Uh oh!
There was an error while loading. Please reload this page.
-
So I noticed that by default some form elements have a default focus but a button for example, I can't make that to focus when im pressing the alt key, perhaps somebody could tell me how to make those have a lighting ring around the element?
I wish to add ring for 2 buttons but:
focus-visible:ring-2 focus-visible:ring-rose-500
is not doing anything.It says here that by default the focus state only comes by default for some core plugins: https://tailwindcss.com/docs/hover-focus-and-other-states#focus
I can't see buttons on this list however the docs are applying focus on buttons. Thanks!
Beta Was this translation helpful? Give feedback.
All reactions