[Accessibility] Capture focus via ref
for RadioButtonGroup
#7070
Labels
accessibility
WCAG support
bug
issue that does not match design or documentation and requires code changes to address
ref
for RadioButtonGroup
#7070
Expected Behavior
The RadioButtonGroup should be capable of capturing focus on the initial input radio element when targeted using ref, mirroring the behavior observed during keyboard navigation.
Actual Behavior
When employing react-hook-form or any form management tool to set focus on a specific input with an error, the RadioButtonGroup (RBG) currently lacks focusability through
ref
. As RBG is a Box without atabIndex
, it cannot be focused. Grommet appropriately handles a comparable scenario for keyboard navigation focus in RBG by directing focus to the first radio element. Similar behavior is expected when managing focus viaref
for RBG.URL, screen shot, or Codepen exhibiting the issue
A POC of the concept #7044
Story example
Steps to Reproduce
Your Environment
Any
The text was updated successfully, but these errors were encountered: