chromaui / storybook-addon-pseudo-states

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

Fixes an issue with particular pseudo classes, which has classes applied on them #45

Closed valentinpalkovic closed 1 year ago

valentinpalkovic commented 1 year ago

Some pseudo-classes, like ::-webkit-scrollbar-thumb are not allowed to have classed defined on them. So converting ::-webkit-scrollbar-thumb:hover to ::-webkit-scrollbar-thumb.pseudo-hover is not valid css. The insertRule method will fail as soon as a pseudo-class like the mentioned one has a class on it defined.

📦 Published PR as canary version: 1.15.2--canary.45.b72c44d.0
:sparkles: Test out this PR locally via: ```bash npm install storybook-addon-pseudo-states@1.15.2--canary.45.b72c44d.0 # or yarn add storybook-addon-pseudo-states@1.15.2--canary.45.b72c44d.0 ```
github-actions[bot] commented 1 year ago

:rocket: PR was released in v1.15.2 :rocket: