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

Clicking the label of the checkbox does not mark it as checked #103

Open
chawes13 opened this issue Nov 2, 2024 · 0 comments
Open

Clicking the label of the checkbox does not mark it as checked #103

chawes13 opened this issue Nov 2, 2024 · 0 comments

Comments

@chawes13
Copy link

chawes13 commented Nov 2, 2024

Even though the label has the appropriate for attribute, clicks on the label do not register as a click on the input. This breaks expectations for how native checkboxes are meant to behave and makes the input less accessible.

Reproduction: https://storybook.adminjs.co/?path=/story/designsystem-atoms-checkbox--default
Working example: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/checkbox

Note: The checkbox works on default forms that are rendered by AdminJS, but when creating a custom component and using CheckBox and Label from the design system, it does not work as expected.

Zight Recording 2024-11-02 at 07 52 04 PM

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