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

Add a component for custom selects #7

Open
titouanmathis opened this issue Jun 21, 2021 · 3 comments
Open

Add a component for custom selects #7

titouanmathis opened this issue Jun 21, 2021 · 3 comments
Assignees

Comments

@titouanmathis
Copy link
Contributor

It should help to easily create custom <select> form elements with accessibility in mind.

See https://codepen.io/titouanmathis/pen/QWGLRGv.

@titouanmathis titouanmathis transferred this issue from studiometa/js-toolkit Oct 25, 2021
@titouanmathis
Copy link
Contributor Author

titouanmathis commented Aug 4, 2022

The Menu component can already manage dropdowns, maybe extend it to synchronize values with a <select>.

See https://ui.studiometa.dev/-/components/molecules/Menu/examples.html#dropdown

@antoine4livre
Copy link
Contributor

Extend the Menu component is a great idea because it already include the focus trap that is missing in your codepen @titouanmathis

@perruche
Copy link
Contributor

This require more work than extending the Menu component to do it properly and respect the WCAG guidelines for combobox.
see: https://www.w3.org/WAI/ARIA/apg/patterns/combobox/examples/combobox-select-only/

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

3 participants