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

[Feature Request]: <Enhance Radio Group Accessibility> #950

Open
mryunt02 opened this issue Oct 21, 2024 · 0 comments
Open

[Feature Request]: <Enhance Radio Group Accessibility> #950

mryunt02 opened this issue Oct 21, 2024 · 0 comments
Labels
a11y Accessibility related issues bl-radio Radio Input Component

Comments

@mryunt02
Copy link
Contributor

Describe the problem or use case

For best accessibility and user experience, the selected Radio Group should be toggled with the arrow keys.

Arrow Keys:

  • Down/Right Arrow:
    • Moves focus to and checks the next radio button in the group.
    • If focus is on the last radio button, moves focus to the first radio button.
    • The state of the previously checked radio button is changed to unchecked.
  • Up/Left Arrow:
    • Moves focus to and checks the previous radio button in the group.
    • If focus is on the first radio button, moves focus to and checks the last radio button.
    • The state of the previously checked radio button is changed to unchecked.

Additionally:

  • The Radio Button should not have the aria-readonly property.
  • Each Radio Button should have the aria-checked attribute to indicate its checked state.

Reference: W3C ARIA Radio Group Example

Proposed solution

No response

Alternatives considered

No response

Additional technical context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a11y Accessibility related issues bl-radio Radio Input Component
Projects
None yet
Development

No branches or pull requests

2 participants