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

Dropdown without JavaScript #246

Open
iBobik opened this issue Mar 14, 2022 · 0 comments
Open

Dropdown without JavaScript #246

iBobik opened this issue Mar 14, 2022 · 0 comments

Comments

@iBobik
Copy link

iBobik commented Mar 14, 2022

We would like to have navigation working even in cases when JS does work. For navigation we need some dropdown component, but this one does not work without JS enabled.

It is possible to code dropdown by just focus-within CSS pseudoclass:
https://tailwindcomponents.com/component/pure-css-dropdown-using-focus-within-with-animation

It is ok to use JS for less important features.

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

1 participant