storybook-addon-pseudo-states icon indicating copy to clipboard operation
storybook-addon-pseudo-states copied to clipboard

Pseudo classes are generated when pseudo is excluded

Open tobi-or-not-tobi opened this issue 2 years ago • 0 comments

When a pseudo selector is used in an exclusion, i.e. :not(:hover), it should not be used to generate a pseudo state class.

We've seen this in various rules:

:not(:hover) { ... } foo > bar :not(:hover) { ... } foo > bar :not(item:hover) { ... }

The regex to match those pseudo's should be improved to avoid the excluded pseudo's.

tobi-or-not-tobi avatar May 10 '22 10:05 tobi-or-not-tobi