chromaui / storybook-addon-pseudo-states

CSS pseudo-classes for Storybook
MIT License
88 stars 28 forks source link

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

Closed m-akinc closed 4 months ago

m-akinc commented 5 months ago

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 commented 5 months ago

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

github-actions[bot] commented 4 months ago

:rocket: PR was released in v3.1.0 :rocket: