chromaui / storybook-addon-pseudo-states

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

Support for CSS Cascade layers #93

Closed TaneliTuomola closed 6 months ago

TaneliTuomola commented 11 months ago

The add-on does not work with CSS styles that are inside of CSS @layer -statement. Only base level cssRules are handled but not cssRules from CSSLayerBlockRule.

https://developer.mozilla.org/en-US/docs/Web/CSS/@layer https://developer.mozilla.org/en-US/docs/Web/API/CSSLayerBlockRule

ghengeveld commented 10 months ago

Good suggestion. I would be happy to review and merge a PR for this. Right now I can't prioritize working on this myself.

smitev commented 7 months ago

@ghengeveld any plans to look at this feature in near future?

ghengeveld commented 7 months ago

I don't have the bandwidth to do this right now. Happy to review and merge a PR though.

m-akinc commented 7 months ago

@ghengeveld I have put up PR #103 to address this and a number of shadow DOM problems. Please give it a review when you have the time. 😊

smitev commented 7 months ago

@m-akinc I was looking at your PR code, but wasn't able to determine does it also support @scope styles? https://developer.mozilla.org/en-US/docs/Web/CSS/:scope

... or this should be out of this PR scope 😉

m-akinc commented 7 months ago

@smitev Yes, it should support any CSS at-rules which contain other rules in curly braces.

smitev commented 6 months ago

@ghengeveld you had a chance to look at #103 ? Should we expect it in soon?

ghengeveld commented 6 months ago

@smitev It was released in v2.2.0.