We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Thanks for this awesome plugin! I have some questions regarding how the plugin deals with selectors of higher specificity.
I see that
.button { --button-background-color: red; color: var(--button-background-color); } .button:hover { --button-background-color: green; }
correctly becomes
.button { color: red; } .button:hover { color: green; }
because .button:hover is a pseudoclass of .button.
.button:hover
.button
But the following:
.button { --button-background-color: red; color: var(--button-background-color); } .button.button-primary { --button-background-color: green; }
produces just
.button { color: red; }
I was expecting the following because .button.button-primary is more specific than .button:
.button.button-primary
.button.button-primary { color: green; }
Is this a bug or is this intended? If it's a bug I could try sending a PR to fix it.
The text was updated successfully, but these errors were encountered:
Duplicate of #77
Sorry, something went wrong.
No branches or pull requests
Thanks for this awesome plugin! I have some questions regarding how the plugin deals with selectors of higher specificity.
I see that
correctly becomes
because
.button:hover
is a pseudoclass of.button
.But the following:
produces just
I was expecting the following because
.button.button-primary
is more specific than.button
:Is this a bug or is this intended? If it's a bug I could try sending a PR to fix it.
The text was updated successfully, but these errors were encountered: