Add a directive to apply state #10925
Closed
andershagbard
started this conversation in
Ideas
Replies: 2 comments
-
I'd use native CSS nesting for this now .card {
@apply bg-gray-50;
&:hover, &:focus {
@apply bg-gray-100;
}
} |
Beta Was this translation helpful? Give feedback.
0 replies
-
This is possible by stacking variants https://tailwindcss.com/docs/adding-custom-styles#using-variants |
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.
-
Instead of the following:
It would be awesome if we could do something similar to:
Beta Was this translation helpful? Give feedback.
All reactions