Are there any special rules for pseudo-classes or pseudo-elements? #296
Unanswered
DanKaplanSES
asked this question in
Q&A
Replies: 0 comments
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.
-
.buttonblock, how do I "modify" it on hover? I feel like there's only one thing you can do: create a new CSS selector for it, e.g.,.button:hoveror.button__elem--mod:hover.::beforeon a block/element? This isn't as straightforward to me. Like the previous point, you could do.button::beforeor.button__elem--mod::before, but maybe there's an advantage to avoiding pseudo elements and creating a semantic element in the HTML instead? e.g.,.button__beforeor.button__before--modThanks for the help.
Beta Was this translation helpful? Give feedback.
All reactions