Form grouping #3834
davidduncandev
started this conversation in
Ideas
Form grouping
#3834
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Currently the form grouping examples do not manage focus and don't announce the group label. I wonder if there would be scope for adding new Form Group components to add the required label (e.g. aria-labelledby for example) to the role="group|radiogroup", and also a component to handle focus management for groups of controls. I guess with react-hook-form, you could take the ref from the field object and pass it to the first radio/checkbox in the group to enable focus transfer to the first option where no options are selected, otherwise pass the ref onto the control where the value matches so focus moves onto the currently selected option? Wonder if there's a way to abstract that behind a component?
Beta Was this translation helpful? Give feedback.
All reactions