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

Checkbox can't be used with keyboard #20

Open
joppekroon opened this issue Feb 24, 2023 · 1 comment
Open

Checkbox can't be used with keyboard #20

joppekroon opened this issue Feb 24, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@joppekroon
Copy link

In the CSS for the checkbox solution, the checkbox is set to display:none;. This makes it impossible to reach and interact with using the keyboard. Using the screen reader only class on the checkbox in the HTML instead solves that issue.

Then there is a further issue that there is no focus indicator. This can be solved by adding an outline to the SVG when the checkbox is focused. You could use :focus-visible if you don't want the outline when people use a mouse.

@AlfieJones
Copy link
Owner

I will make sure this is fixed in the latest version. Thanks for all the great feedback

@AlfieJones AlfieJones added the bug Something isn't working label Feb 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants