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
Pseudo classes don't apply styles #99
Comments
Hmm, I've noticed errors / warnings in my console when using this library that too many hover CSS rules were detected and that the addon would only be able to support a subset of them. It might be worth checking if you have a similar warning in the console as Tailwind could be exporting a lot. If the library is working as expected, it should generate a CSS rule along the lines of |
@jhancock532 thank you, my friend!
a have you worked around it, by any chance? |
+1 for seeing this issue after upgrading to latest storybook (7) |
i haven't found any solution yet :/ |
Us neither. We have an Angular project where this was working on version 6 then broken after the upgrade to latest 7. Considering re-writing our scss with pseudo mixins so I can just apply them manually as standalone classes until this is resolved. |
@dominickbrasileiro A workaround I considered was to add the missing styles to the webpage on page load. Unfortunately I've not implemented a complete solution yet as it's quite low priority / odd solution, but I made a draft of what should happen on CodePen: https://codepen.io/jhancock532/pen/qBJJOWE
The above script would be added at the end of |
This line is part of an What's the reason for the limit of a thousand, is it a performance issue? |
Hi there,
I'm trying to use the pseudo-states in a Next.js + Tailwind CSS project, but I can't make them work.
I have installed the add-on correctly in
.storybook/main.js
, and the menu appears in the local storybook.This is a test story that I'm using to debug:
Am I missing something here?
The
pseudo-hover-all
class is being applied to my root component#storybook-root
, but it has no effect on the preview.Versions
@storybook/nextjs: 7.5.1
@storybook/react: 7.5.1
storybook-addon-pseudo-states: 2.1.2
The text was updated successfully, but these errors were encountered: