Skip to content

Combined data attributes/states #2709

Answered by RemyMachado
RemyMachado asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks for your response.

I don't want this to take effect on a global scope. It's for a very specific component.

If I understand correctly, extend: { hover: ... will override _hover on a global scope. In this case, I'm not sure it is pertinent to put it in the config If I'm only planning to use it in a single place.

Can I create a custom keyword extend: { specialHover: ... -> _specialHover: { or does it only work for existing conditions?

Also, I really like this shorter version you came up with: &:is(:hover, [data-hover]) 🙌

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@RemyMachado
Comment options

Answer selected by segunadebayo
@segunadebayo
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants