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
Description
Explainer: https://open-ui.org/components/scoped-focusgroup.explainer/
focusgroupis 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 likefocusgroup="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
focusgrouplanded in Chrome 150.Specification
whatwg/html#11723
web-feature
focusgroup
Test Links
Additional Signals