Skip to content

HTML focusgroup #1348

Description

@mkrause

Description

Explainer: https://open-ui.org/components/scoped-focusgroup.explainer/

focusgroup is a proposed HTML attribute that replaces the hand-rolled "roving tabindex" logic every UI library reimplements for toolbars, tabs, menus, listboxes, and radiogroups. Adding something like focusgroup="toolbar wrap" to a container gives its children directional (e.g. arrow key) navigation between items, a single guaranteed tab stop, and memory of the last-focused item, without JavaScript (selection state remains the author's responsibility).

Support for focusgroup landed in Chrome 150.

Specification

whatwg/html#11723

web-feature

focusgroup

Test Links

Additional Signals

Activity

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