Closed filipw01 closed 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
.hiOZqY:hover
.hiOZqY:hover, .hiOZqY:hover, .pseudo-hover .hiOZqY
.hiOZqY:hover, .hiOZqY.pseudo-hover, .pseudo-hover .hiOZqY
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
Fixed in 2.0.1
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