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

Autofocus first item when open menu #58

Open
brunoprietog opened this issue Apr 29, 2022 · 1 comment
Open

Autofocus first item when open menu #58

brunoprietog opened this issue Apr 29, 2022 · 1 comment

Comments

@brunoprietog
Copy link

Hi,

Will it be possible to focus the first menu item when it opens without it being an input element necessarily? This is how it is currently defined.

For accessibility, in most dropdowns, when pressing the button, the focus is expected to go to the first menu item, that doesn't happen currently.

I can try to make a pr to fix this if you agree.

Thanks!

@brunoprietog
Copy link
Author

I also noticed when reading the code that the autofocus attribute of details-menu is not documented. Perhaps one could also add

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