postcss-css-variables
postcss-css-variables copied to clipboard
Extra declaration for pseudo class
Input:
:root {
--color: blue;
}
.c:focus {
--color: red;
border-color: var(--color);
}
Output:
.c:focus {
border-color: blue;
}
.c:focus:focus {
border-color: red;
}
Expected:
.c:focus {
border-color: red;
}
Thanks for the report :grinning: PRs are welcome
I checked this out a couple days ago but thought I would give a reply in case you didn't see the edit to your message.
The extra pseudo class doesn't affect the functionality but is certainly undesired.
I run into the same problem :)