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
{{ message }}
Repository navigation
[focusgroup] Selection should follow focus for radio buttons #1543
It's unfortunate that a declarative mechanism would require script to work properly. Is there a reason that radio doesn't have the native behavior built in if that's always the correct behavior?
focusgroup isn't designed to fully implement all of the associated patterns. It's designed to specifically handle the collapsing into a single tab stop and adding arrow key navigation within the group.
For a radiogroup you often (though not always) do want selection to follow focus and that is something you currently require JS to achieve. The same way you probably also need JS to implement activation behaviour etc.
For radios inside of a toolbar for example you don't want selection to follow focus.
Activity
lukewarlow commentedon Nov 1, 2026
focusgroup isn't designed to fully implement all of the associated patterns. It's designed to specifically handle the collapsing into a single tab stop and adding arrow key navigation within the group.
For a radiogroup you often (though not always) do want selection to follow focus and that is something you currently require JS to achieve. The same way you probably also need JS to implement activation behaviour etc.
For radios inside of a toolbar for example you don't want selection to follow focus.