Skip to content
New issue

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

fix: only generate pseudo selector when the selector has a match #30

Conversation

tobi-or-not-tobi
Copy link
Contributor

With this change, a pseudo state selector is no longer generated for each selector inside a group. Previously, if there was a single match from a group, all selectors from the group would result in a generated pseudo state class. This would cause errors since incorrect CSS was generated.

fixes #29

src/withPseudoState.js Outdated Show resolved Hide resolved
@ghengeveld ghengeveld merged commit 769d276 into chromaui:main May 24, 2022
@github-actions
Copy link

🚀 PR was released in v1.14.0 🚀

@github-actions github-actions bot added the released This issue/pull request has been released. label May 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
released This issue/pull request has been released.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Pseudo classes incorrectly generated for group selectors with one pseudo match
2 participants