Group with focus-within #3015
Replies: 2 comments 2 replies
-
Hello! You can find information about https://tailwindcss.com/docs/hover-focus-and-other-states#group-hover Here's a Tailwind Play example with a card that, when hoevered, changes the color of the text inside of it (within the group): https://play.tailwindcss.com/B6xL6swOsm The way it works with with a nested selector When you use the class Hope it helps! |
Beta Was this translation helpful? Give feedback.
-
Answering the [Updated] question: the With Does it make sense? To understand how the code works, you must understand how fundamentally different |
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.
-
I try to understand how works and compile the 'group' and 'group-*' class. Any Information or help?
[Updated]
Hey, Simon :D Thanks for the reply.
Sorry, the wording of my thought was incorrect and sorry for waste of your time. I wanted to know about the workflow of group under the hood but the real thoughts its about
focus-within
... To keep it brief, is possible to make something likegroup-hover
tofocus-within
. The 'focus-within' it will be more useful with grouping selectors. But I don't know if is feature good or not... That's why I was looking for group class to understand the code under the hood and come to a conclusion if my thoughts was wrong.If you want I can provide a code examples about the use case.
Simon I'm waiting more videos on youtube.
Beta Was this translation helpful? Give feedback.
All reactions