Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stories: Check out pseudo states plugin #1051

Closed
swisspost-bot opened this issue Feb 1, 2023 · 1 comment
Closed

Stories: Check out pseudo states plugin #1051

swisspost-bot opened this issue Feb 1, 2023 · 1 comment
Assignees
Labels
⚙️ setup Setup work for the repository or a new package

Comments

@swisspost-bot
Copy link
Contributor

https://storybook.js.org/addons/storybook-addon-pseudo-states

This plugin enables preview of pseudo states for stories. Check if we can use it to simulate hover/focus states in tests.

@swisspost-bot swisspost-bot added ⚙️ setup Setup work for the repository or a new package storybook labels Feb 1, 2023
@swisspost-bot swisspost-bot added this to the Storybook migration milestone Feb 1, 2023
@gfellerph gfellerph removed this from the Storybook migration milestone Jun 12, 2023
@imagoiq imagoiq self-assigned this Oct 11, 2023
@imagoiq
Copy link
Contributor

imagoiq commented Oct 17, 2023

Every solution listed below has at least one similar limitation:

  • No support for web-components built stylesheet

storybook-addon-pseudo-states plugin

PR experiment: #2076

Limitation

giuseppeg/postcss-pseudo-classes

Last update: Nov 2019

This plugin is a bit out of date and don't support some new CSS additions like :is.
Some PRs are waiting to be merged (for a long) time that solves most of the issue (see Fork philippone/postcss-pseudo-classes)

PR experiment that :

  • Compile all the Pull requests additions that haven't been merged
  • Make it compatible with PostCSS 8
  • Blacklist :not, :where, :is

#2092

Limitation

None other than the general one about web-components.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⚙️ setup Setup work for the repository or a new package
Projects
3 participants