chromaui / storybook-addon-pseudo-states

CSS pseudo-classes for Storybook
MIT License
90 stars 31 forks source link

Sibling pseudo class not applied to classes ending with `Y` #66

Closed filipw01 closed 1 year ago

filipw01 commented 1 year ago

Because of this regex classes ending with Y don't work https://github.com/chromaui/storybook-addon-pseudo-states/blob/next/src/preview/rewriteStyleSheet.ts#L38

I have classes generated with styled-components and .hiOZqY:hover is rewritten to .hiOZqY:hover, .hiOZqY:hover, .pseudo-hover .hiOZqY instead of .hiOZqY:hover, .hiOZqY.pseudo-hover, .pseudo-hover .hiOZqY

filipw01 commented 1 year ago

Tracked it down to and I still don't understand how it might relate to the issue it fixes https://github.com/chromaui/storybook-addon-pseudo-states/pull/45

filipw01 commented 1 year ago

Fixed in 2.0.1