Skip to content

[focusgroup] Selection should follow focus for radio buttons #1543

Open

Description

@esprehn

The current behavior requires JS otherwise radio buttons don't work correctly, for example in this demo: https://microsoftedge.github.io/Demos/focusgroup/radiogroup.html

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?

Activity

  1. lukewarlow commented on Nov 1, 2026

    @lukewarlow
    Collaborator

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions