Skip to content
This repository was archived by the owner on May 7, 2025. It is now read-only.

Conversation

@hpohlmeyer
Copy link

This change will process all nested rules instead of only the most nested one. This enables support for more complex selectors like the ones used by tailwind v4:

@layer utilities {
  .hover\:text-red-500 {
    @media (hover: hover) {
      &:hover {
          color: var(--color-red-500);
      }
    }
  }
}

The test mock implementation falls too short to properly test this feature. Neither jsdom nor happy-dom have a proper implementation of the behavior the test relies on, so I switched to the vitest browser mode. The switch did not affect any other test.


Fixes storybookjs/storybook#31410

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Nested media query breaks hover-state detection/transformation

1 participant