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
```
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. TheinsertRule
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 ```