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

Accordion styling doesn't kick in until interactions and sometimes reverts back to default #1063

Closed
mikesol opened this issue Jul 25, 2022 · 2 comments

Comments

@mikesol
Copy link

mikesol commented Jul 25, 2022

accordion.mp4

I'm trying our tw-elements@1.0.0-alpha12 (really nice work to the team!) and my accordion element functions correctly but the styling is a bit off. Specifically, the styling does not kick in until there's an interaction with the component, and occasionally, it reverts back to the default styling after an interaction.

Looking at the Chrome inspector, it seems as if the correct tailwind classes are there all the time. I'm not using the aria labels currently - could that be causing the bug? Anyway, I thought it would be useful to report it. Thanks!

@mikesol
Copy link
Author

mikesol commented Jul 25, 2022

Digging a bit further, it seems that the :not(.collapsed) style reverts to the default styling. Is there any way to theme this? Thanks
not-collapsed
!

@smolenski-mikolaj
Copy link
Contributor

We're now refactoring the accordion component completely to remove custom classes and move all classes to tailwind, so the issues should be solved in the next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants