You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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