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

Selected disabled Radio in RadioGroup no longer impedes keyboard navigation #3305

Merged
merged 2 commits into from
Dec 14, 2023

Conversation

lawrencewin
Copy link
Contributor

Platforms Impacted

  • iOS
  • macOS
  • win32 (Office)
  • windows
  • android

Description of changes

Currently, the RadioGroup has a niche bug where keyboard navigation is impeded by a selected, disabled radio. Trying to set focus over the RadioGroup is impossible in this case.

This PR fixes this edge case by skipping focus of the RadioGroup when trying to switch focus onto a selected, disabled radio. This mirrors current behavior on the web RadioGroup.

Verification

Before After
https://github.com/microsoft/fluentui-react-native/assets/15683103/b8574d05-ee5b-4f10-99a5-09c23537259e https://github.com/microsoft/fluentui-react-native/assets/15683103/0d1ff6c9-bf88-42ed-a3cf-698f658113e0

Pull request checklist

This PR has considered (when applicable):

  • Automated Tests
  • Documentation and examples
  • Keyboard Accessibility
  • Voiceover
  • Internationalization and Right-to-left Layouts

@lawrencewin lawrencewin requested a review from a team as a code owner December 13, 2023 21:05
@lawrencewin lawrencewin merged commit 531ff39 into microsoft:main Dec 14, 2023
11 checks passed
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.

2 participants