Skip to content

[Checkbox][RadioGroup] Prevent enter key activation #1104

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

Merged
merged 1 commit into from
Jan 21, 2022
Merged

Conversation

jjenzz
Copy link
Contributor

@jjenzz jjenzz commented Jan 20, 2022

Fixes #1103

According the the WAI ARIA spec:

  • Checkboxes don't activate on enter keypress
  • Radio groups don't activate on enter keypress when not in a toolbar
    • We have a separate ToolbarToggleGroup component for toolbars which activates on enter keypress

I also checked WAI ARIA info on Switch and switch is fine to activate on enter keypress.

@jjenzz jjenzz merged commit 0aba38f into main Jan 21, 2022
@jjenzz jjenzz deleted the checkbox-space branch January 21, 2022 14:41
@gunningham
Copy link

gunningham commented May 16, 2022

image

Please update docs to reflect this :)

@benoitgrelard
Copy link
Contributor

benoitgrelard commented May 17, 2022

@gunningham thanks for that, we'll update it.
radix-ui/website#392

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

Successfully merging this pull request may close these issues.

[Checkbox]
3 participants