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

Better support pseudo-states in selectors with :host() #114

Conversation

m-akinc
Copy link
Contributor

@m-akinc m-akinc commented Apr 9, 2024

When rewriting rules with pseudo-states both inside and outside a :host() selector, we were not properly creating a pseudo-*-all-based selector. For example, from :host(.foo:focus) .bar:hover, we would generate:

:host(.foo.pseudo-focus-all) .bar.pseudo-hover-all (wrong)
rather than
:host(.foo.pseudo-focus-all.pseudo-hover-all) .bar (correct)

@m-akinc
Copy link
Contributor Author

m-akinc commented Apr 9, 2024

@ghengeveld I have a couple more PRs to put up, so again, it can be labeled patch and skip-release.

@ghengeveld ghengeveld added patch Increment the patch version when merged skip-release Preserve the current version when merged labels Apr 15, 2024
Copy link
Member

@ghengeveld ghengeveld left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@ghengeveld ghengeveld merged commit 6a645d0 into chromaui:main Apr 15, 2024
2 of 3 checks passed
Copy link

github-actions bot commented May 6, 2024

🚀 PR was released in v3.1.0 🚀

@github-actions github-actions bot added the released This issue/pull request has been released. label May 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
patch Increment the patch version when merged released This issue/pull request has been released. skip-release Preserve the current version when merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants