Vanilla Breeze v0.7.4

Vanilla Breeze v0.7.4 released

0.7.4 gives the Ambient pack weather. A page names one feed URL on its own site, and the pack sets data-weather from it, uses its sunrise and sunset for dawn and dusk, and never shows a stale observation. Helpers for producing the feed from Open-Meteo are included. Ambient p…

Read the release notes

Keyboard and Focus

The focus ring, skip links, tab order, focus containment and the keys each component handles.

The focus ring

Every focusable element shows an outline when it takes keyboard focus. The rule uses :focus-visible, so a mouse click on a button does not draw it and a Tab press does. Three tokens set its look everywhere at once.

The high contrast theme and the system's increased-contrast setting both widen the ring to 3px. Do not remove the outline. If it clashes with a design, change the tokens.

Tab order

Focus follows source order. Layout elements such as <layout-sidebar> place content with CSS and never reorder the keyboard path, so write the markup in reading order and let the layout arrange it.

To do thisUse
Make an element focusable from script, but not a tab stoptabindex="-1"
Add a custom control to the tab ordertabindex="0", and only when no native element fits
Take a region out of the tab order while it stays visibleinert
Remove content for everyonehidden

Never use a positive tabindex. It pulls the element out of source order and every later change to the page has to account for it.

Keeping focus inside

A modal <dialog> opened with showModal() contains focus, closes on Esc and returns focus to the element that opened it. The browser does all three. Use it for anything modal.

For a region that is not a dialog, such as an inline editing panel, add data-focus-trap. Tab and Shift+Tab then cycle inside it.

With an empty value the trap also moves focus to the first control, or to the one marked autofocus, as soon as it is found. no-autofocus leaves that to you, which suits a panel that is in the page from the start and hidden. Whichever you use, give the reader a way out: a cancel button and Esc, and return focus to the control that opened the panel.

Shortcuts

data-hotkey on a <kbd> shows a key combination the way the reader's platform writes it, Ctrl+K for example, and gives screen readers the spelled-out names. <short-cuts> lists every shortcut a page defines in a dialog opened with ?.

A shortcut made of a single character can fire by accident for people who use speech input. Keep single-key shortcuts to a component that has focus, or let readers turn them off.

Keys by component

This list is generated from the data kept beside each component, and a release check compares it with the component's code. It lists keys the component handles itself. Keys the browser already handles, such as Enter on a button, appear only where they are the main way to operate the component.

74 components handle keys of their own. Open one to see them.

<accordion-wc> Accordion
KeyActionWhen
Enter or SpaceOpen or close the panelNative behaviour of <summary>
Down ArrowMove focus to the next panel header, wrapping to the firstFocus on a panel header
Up ArrowMove focus to the previous panel header, wrapping to the lastFocus on a panel header
HomeMove focus to the first panel headerFocus on a panel header
EndMove focus to the last panel headerFocus on a panel header

accordion-wc documentation

<activity-feed> Feed
KeyActionWhen
Page DownMove focus to the next entryFocus on or inside an entry
Page UpMove focus to the previous entryFocus on or inside an entry
Ctrl+EndMove focus to the first focusable element after the feedFocus on or inside an entry
Ctrl+HomeMove focus to the last focusable element before the feedFocus on or inside an entry

activity-feed documentation

<ai-chat> Live region
KeyActionWhen
EnterSend the messageFocus in the message field (handled by chat-input)
EscStop the reply that is being generated; the draft in the message field is keptWhile a reply is streaming

ai-chat documentation

<ai-summary> Live region
KeyActionWhen
EscStop the summary that is being generatedWhile a summary is being generated

ai-summary documentation

<analytics-panel> Button
KeyActionWhen
Enter or SpacePause or resume analytics, or refresh the panelNative behaviour of <button>

analytics-panel documentation

<audio-player> Native media controls
KeyActionWhen
SpacePlay or pauseFocus anywhere inside the player, except on a button, the playlist summary or a text field
Left ArrowSeek back 10 secondsFocus anywhere inside the player, except on the seek or volume slider or a text field
Right ArrowSeek forward 10 secondsFocus anywhere inside the player, except on the seek or volume slider or a text field
m or MMute or unmuteFocus anywhere inside the player, except in a text field

audio-player documentation

<author-index> Native details/summary
KeyActionWhen
Enter or SpaceOpen or close an author groupNative behaviour of <summary>

author-index documentation

<bread-crumb> Breadcrumb
KeyActionWhen
Enter or SpaceShow or hide the collapsed crumbsNative behaviour of <button> (the ellipsis toggle)

bread-crumb documentation

<calendar-wc> Grid
KeyActionWhen
Right ArrowMove focus to the next day (reversed in right-to-left)Focus on a day
Left ArrowMove focus to the previous day (reversed in right-to-left)Focus on a day
Down ArrowMove focus to the same weekday in the next weekFocus on a day
Up ArrowMove focus to the same weekday in the previous weekFocus on a day
HomeMove focus to the first day of the week row within the monthFocus on a day
EndMove focus to the last day of the week row within the monthFocus on a day
Page UpMove focus to the same day in the previous monthFocus on a day
Page DownMove focus to the same day in the next monthFocus on a day
Shift+Page UpMove focus to the same day in the previous yearFocus on a day
Shift+Page DownMove focus to the same day in the next yearFocus on a day
Enter or SpaceSelect the day, or open its event detail when selection is offNative behaviour of <button>
EscClose the day detail and return focus to the dayDay detail open

calendar-wc documentation

<change-set> Button
KeyActionWhen
Enter or SpaceSwitch to that view of the changesNative behaviour of <button>

change-set documentation

<chat-input> Native form controls
KeyActionWhen
EnterSend the messageFocus in the message field
EscClear the message fieldFocus in the message field

chat-input documentation

<color-picker> Slider
KeyActionWhen
Enter or SpaceOpen or close the picker panelNative behaviour of <button> (the trigger)
Right ArrowIncrease saturation by 1Focus on the saturation and lightness area
Left ArrowDecrease saturation by 1Focus on the saturation and lightness area
Up ArrowIncrease lightness by 1Focus on the saturation and lightness area
Down ArrowDecrease lightness by 1Focus on the saturation and lightness area
HomeSet saturation to 0Focus on the saturation and lightness area
EndSet saturation to 100Focus on the saturation and lightness area
Page UpIncrease lightness by 10Focus on the saturation and lightness area
Page DownDecrease lightness by 10Focus on the saturation and lightness area
Right Arrow or Up ArrowIncrease hue by 1 degreeFocus on the hue slider
Left Arrow or Down ArrowDecrease hue by 1 degreeFocus on the hue slider
Page UpIncrease hue by 10 degreesFocus on the hue slider
Page DownDecrease hue by 10 degreesFocus on the hue slider
HomeSet hue to 0 degreesFocus on the hue slider
EndSet hue to 360 degreesFocus on the hue slider
Shift+Right Arrow or Shift+Left Arrow or Shift+Up Arrow or Shift+Down ArrowChange the value by 10 instead of 1Focus on either slider
EscClose the panel; focus returns to the trigger when it was inside the panelPanel open and focus on the trigger or inside the panel

color-picker documentation

<combo-box> Combobox
KeyActionWhen
Down ArrowOpen the list if closed and move to the next option, wrapping to the first—
Up ArrowOpen the list if closed and move to the previous option, wrapping to the last—
HomeMove to the first optionList open
EndMove to the last optionList open
EnterSelect the active option; in multiple mode with custom values, add the typed text as a tag. With no active option and nothing to add, Enter submits the form—
, Add the typed text as a tagMultiple mode with custom values
BackspaceRemove the last tagMultiple mode, input empty
EscClose the list and keep focus in the inputList open
TabClose the list and move focus onList open

combo-box documentation

<command-palette> Combobox
KeyActionWhen
Cmd+k or Ctrl+kOpen or close the palette (Meta on macOS, Ctrl elsewhere; set by the hotkey attribute)Anywhere on the page
Down ArrowMove to the next command, wrapping to the firstPalette open
Up ArrowMove to the previous command, wrapping to the lastPalette open
EnterRun the active command and close the palettePalette open
EscClose the palettePalette open

command-palette documentation

<comment-box> Native form controls
KeyActionWhen
Ctrl+Enter or Cmd+EnterSubmit the commentFocus in the comment field
EscCancel, as the Cancel button doesdata-show-cancel is set and focus is in the comment field or on its buttons

comment-box documentation

<comment-thread> Landmark region
KeyActionWhen
Enter or SpaceReply to, edit or delete the commentNative behaviour of <button>

comment-thread documentation

<comment-wc> Button
KeyActionWhen
Enter or SpaceStart a comment on the current selectionNative behaviour of <button>

comment-wc documentation

<compare-surface> Slider
KeyActionWhen
Right ArrowIncrease the position by 1% (reversed in right-to-left)Focus on the divider
Left ArrowDecrease the position by 1% (reversed in right-to-left)Focus on the divider
Up ArrowIncrease the position by 1%Focus on the divider
Down ArrowDecrease the position by 1%Focus on the divider
Shift+Right Arrow or Shift+Left Arrow or Shift+Up Arrow or Shift+Down ArrowChange the position by 10% instead of 1%Focus on the divider
Page UpIncrease the position by 10%Focus on the divider
Page DownDecrease the position by 10%Focus on the divider
HomeSet the position to 0%Focus on the divider
EndSet the position to 100%Focus on the divider

compare-surface documentation

<content-swap> Button
KeyActionWhen
Enter or SpaceSwap faces and move focus to the first control on the face now showingFocus on a [data-swap] trigger (native behaviour of a button or link; handled by the component on other elements)
Enter or SpaceSwap faces and keep focus on the toggleNative behaviour of button (the generated or authored data-swap-toggle)

content-swap documentation

<context-menu> Menu
KeyActionWhen
Menu key or Shift+F10Open the menu at the trigger and focus the first itemFocus on the trigger or on anything inside it
Down ArrowMove to the next item, wrapping to the first—
Up ArrowMove to the previous item, wrapping to the last—
HomeMove to the first item—
EndMove to the last item—
Enter or SpaceActivate the focused item and close the menu—
TabClose the menu—
EscClose the menu and return focus to the triggerNative behaviour of popover

context-menu documentation

<data-table> Table
KeyActionWhen
Enter or SpaceSort by the column, toggling between ascending and descendingNative behaviour of button (the generated sort button in a header)

data-table documentation

<date-picker> Combobox
KeyActionWhen
Down ArrowOpen the calendar and focus the selected or current dayFocus on the text input
EnterCommit the typed date, or clear the value when the input is emptyFocus on the text input
EscClose the calendar and restore the displayed valueFocus on the text input
TabClose the calendar and move onFocus on the text input
Tab or Shift+TabMove through the previous month button, the year select, the next month button and the day grid, wrapping within the calendarFocus in the calendar
Right ArrowMove to the next day (reversed in right-to-left)Focus in the day grid
Left ArrowMove to the previous day (reversed in right-to-left)Focus in the day grid
Down ArrowMove to the same weekday in the next weekFocus in the day grid
Up ArrowMove to the same weekday in the previous weekFocus in the day grid
HomeMove to the first day of the weekFocus in the day grid
EndMove to the last day of the weekFocus in the day grid
Page DownMove to the same day in the next monthFocus in the day grid
Page UpMove to the same day in the previous monthFocus in the day grid
Shift+Page DownMove to the same day in the next yearFocus in the day grid
Shift+Page UpMove to the same day in the previous yearFocus in the day grid
Enter or SpaceSelect the focused day, close the calendar and return focus to the text inputFocus in the day grid
EscClose the calendar and return focus to the text inputFocus in the calendar

date-picker documentation

<day-view> Native list with roving tabindex
KeyActionWhen
Down ArrowMove to the next event—
Up ArrowMove to the previous event—
HomeMove to the first event—
EndMove to the last event—
Enter or SpaceFire day-view:event-click for the focused eventFocus on the event itself, not a link or button inside it

day-view documentation

<drag-surface> Sortable list
KeyActionWhen
Enter or SpaceGrab the item, or drop it when already grabbedFocus on an item or its drag handle
Down Arrow or Up ArrowMove focus to the next or previous item, or move the grabbed item one positionVertical orientation
Right Arrow or Left ArrowMove focus to the next or previous item, or move the grabbed item one position (reversed in right-to-left)Horizontal orientation
Right Arrow or Left ArrowMove the grabbed item to the next or previous surface in the groupVertical orientation, item grabbed
Down Arrow or Up ArrowMove the grabbed item to the next or previous surface in the groupHorizontal orientation, item grabbed
EscCancel the grab and return the item to where it started, or blur the item when nothing is grabbed—

drag-surface documentation

<drop-down> Menu button
KeyActionWhen
Enter or SpaceOpen the menu and focus the first itemNative behaviour of button (the trigger)
Down ArrowOpen the menu and focus the first itemFocus on the trigger, action mode
Up ArrowOpen the menu and focus the last itemFocus on the trigger, action mode
Down ArrowMove to the next item, wrapping to the firstFocus in the menu, action mode
Up ArrowMove to the previous item, wrapping to the lastFocus in the menu, action mode
HomeMove to the first itemFocus in the menu, action mode
EndMove to the last itemFocus in the menu, action mode
Enter or SpaceActivate the focused item and close the menuFocus in the menu, action mode
Any characterMove to the next item whose label starts with the typed charactersFocus in the menu, action mode
TabClose the menuFocus in the menu, action mode
EscClose the menu and return focus to the trigger or toggle button—

drop-down documentation

<emoji-picker> Non-modal dialog with a listbox
KeyActionWhen
Enter or SpaceOpen the picker and focus the search field, or close itNative behaviour of button (the trigger)
EscClose the picker and return focus to the trigger—
Down ArrowMove focus to the active or first emojiFocus on the search field
Right Arrow or Left ArrowMove to the next or previous category, wrapping (reversed in right-to-left)Focus in the category toolbar
Home or EndMove to the first or last categoryFocus in the category toolbar
Right Arrow or Left ArrowMove to the next or previous emoji (reversed in right-to-left)Focus in the emoji grid
Down ArrowMove to the nearest emoji in the row belowFocus in the emoji grid
Up ArrowMove to the nearest emoji in the row above, or to the search field from the first rowFocus in the emoji grid
Home or EndMove to the first or last visible emojiFocus in the emoji grid
Page DownMove to the first emoji of the next groupFocus in the emoji grid
Page UpMove to the first emoji of the current group, then of the previous groupFocus in the emoji grid

emoji-picker documentation

<flow-diagram> Figure with a list of buttons (roving tabindex)
KeyActionWhen
Down Arrow or Right ArrowMove to the next step (ArrowRight reversed in right-to-left)—
Up Arrow or Left ArrowMove to the previous step (ArrowLeft reversed in right-to-left)—
HomeMove to the first step—
EndMove to the last step—
Enter or SpaceSelect the focused stepNative behaviour of button

flow-diagram documentation

<foot-notes> Footnote links (DPUB-ARIA)
KeyActionWhen
EscHide the note preview popoverA preview is showing

foot-notes documentation

<geo-map> Image, then an application-like region once activated
KeyActionWhen
Enter or SpaceSwitch the static map to interactive mode and focus the mapNative behaviour of button (the activate button)
Left Arrow or Right Arrow or Up Arrow or Down ArrowPan the mapFocus on the interactive map
+ or =Zoom inFocus on the interactive map
- or _Zoom outFocus on the interactive map
Home or 0Return to the original centreFocus on the interactive map
EscLeave interactive mode and return focus to the activate buttonFocus on the interactive map

geo-map documentation

<glossary-wc> Disclosure
KeyActionWhen
Enter or SpaceExpand or collapse a categoryNative behaviour of button (the category toggle)

glossary-wc documentation

<highlight-wc> Disclosure
KeyActionWhen
Enter or SpaceOpen the colour palette and focus the current colourNative behaviour of button (the highlighter button)
EscClose the colour palette and return focus to the highlighter buttonThe palette is open

highlight-wc documentation

<image-map> Group of links and buttons with tooltips
KeyActionWhen
TabMove to the next hotspot in source order; every hotspot is a tab stopNative behaviour of a and button
Down ArrowMove to the nearest hotspot below; focus stays when there is noneFocus on a hotspot
Up ArrowMove to the nearest hotspot above; focus stays when there is noneFocus on a hotspot
Right ArrowMove to the nearest hotspot to the right; focus stays when there is noneFocus on a hotspot
Left ArrowMove to the nearest hotspot to the left; focus stays when there is noneFocus on a hotspot
SpaceActivate the hotspot as Enter doesFocus on a hotspot that is a link
EnterFollow the link or, for click-mode hotspots, toggle the tooltip and focus its first controlNative behaviour of a and button
EscHide the visible tooltip and, when focus was inside it, return focus to its hotspotA tooltip is showing

image-map documentation

<markdown-editor> Native form controls
KeyActionWhen
TabInsert two spaces instead of moving focusFocus in the textarea with data-tab-indent set
EscRelease the next Tab press so it moves focus out of the textareaFocus in the textarea with data-tab-indent set

markdown-editor documentation

<note-wc> Dialog (non-modal)
KeyActionWhen
EscClose the note panel without saving and return focus to the opener (or the highlight when the opener is gone)Focus in the note panel
Ctrl+Enter or Cmd+EnterSave the note and close the panelFocus in the note textarea

note-wc documentation

<notification-wc> Non-modal dialog with tabs
KeyActionWhen
EscClose the panel and return focus to the triggerPanel open and focus on the trigger or inside the panel
Right ArrowMove to and select the next tab, wrapping (reversed in right-to-left)Focus on a tab
Left ArrowMove to and select the previous tab, wrapping (reversed in right-to-left)Focus on a tab
HomeMove to and select the first tabFocus on a tab
EndMove to and select the last tabFocus on a tab

notification-wc documentation

<page-info> Native details/summary
KeyActionWhen
Enter or SpaceOpen or close the page information panelNative behaviour of summary

page-info documentation

<page-toc> Landmark navigation
KeyActionWhen
EnterScroll to the heading and move focus to itNative behaviour of a link; the component handles the click
Enter or SpaceCollapse or expand the whole table of contentsNative behaviour of summary

page-toc documentation

<page-tools> Toolbar
KeyActionWhen
Right ArrowMove to the next tool, wrapping (reversed in right-to-left)Horizontal toolbar
Left ArrowMove to the previous tool, wrapping (reversed in right-to-left)Horizontal toolbar
Down ArrowMove to the next tool, wrappingVertical toolbar or collapsed panel
Up ArrowMove to the previous tool, wrappingVertical toolbar or collapsed panel
HomeMove to the first tool—
EndMove to the last tool—
EscClose the collapsed panel and return focus to the floating buttonNative behaviour of popover

page-tools documentation

<page-tour> Dialog (modal)
KeyActionWhen
EscEnd the tour and return focus to where it startedCurrent step is skippable
Right Arrow or Down ArrowGo to the next step (ArrowRight and ArrowLeft are reversed in right-to-left)Focus in the tour card or on nothing, not in a form field
Left Arrow or Up ArrowGo to the previous step (ArrowRight and ArrowLeft are reversed in right-to-left)Focus in the tour card or on nothing, not in a form field
HomeGo to the first stepFocus in the tour card or on nothing, not in a form field
EndGo to the last stepFocus in the tour card or on nothing, not in a form field
TabMove to the next control in the card, wrapping; on a gated step the target joins the cycle—
Shift+TabMove to the previous control in the card, wrapping; on a gated step the target joins the cycle—

page-tour documentation

<pager-wc> Landmark navigation
KeyActionWhen
Enter or SpaceGo to the page the focused button names; focus stays on the equivalent button after the controls re-renderNative behaviour of button

pager-wc documentation

<poll-wc> Radio group
KeyActionWhen
Down Arrow or Right ArrowMove focus to the next option without voting, wrapping (left and right reversed in right-to-left)Single choice
Up Arrow or Left ArrowMove focus to the previous option without voting, wrapping (left and right reversed in right-to-left)Single choice
HomeMove focus to the first option without votingSingle choice
EndMove focus to the last option without votingSingle choice
Enter or SpaceVote for the focused option, or withdraw the voteNative behaviour of button

poll-wc documentation

<pop-over> Native popover
KeyActionWhen
EscClose the popoverNative behaviour of popover in auto and hint modes

pop-over documentation

<print-page> Native button
KeyActionWhen
Enter or SpaceOpen the print dialogNative behaviour of button

print-page documentation

<progress-tracker> Native ordered list of steps
KeyActionWhen
Enter or SpaceGo back to the focused completed stepNative behaviour of button; completed steps with data-clickable

progress-tracker documentation

<reaction-bar> Toolbar
KeyActionWhen
Right ArrowMove to the next chip or the add-reaction trigger, wrapping (reversed in right-to-left)Focus in the toolbar
Left ArrowMove to the previous chip or the add-reaction trigger, wrapping (reversed in right-to-left)Focus in the toolbar
Right Arrow or Down ArrowMove to the next palette option, wrapping (left and right reversed in right-to-left)Focus in the palette
Left Arrow or Up ArrowMove to the previous palette option, wrapping (left and right reversed in right-to-left)Focus in the palette
HomeMove to the first item of the toolbar or palette—
EndMove to the last item of the toolbar or palette—
EscClose the paletteNative behaviour of popover

reaction-bar documentation

<reader-view> Toggle buttons with a paged region
KeyActionWhen
EscReturn to scroll mode and move focus to the mode togglePages mode
Right Arrow or Page DownGo to the next page (arrow reversed in right-to-left)Pages mode, focus not in a form field
Left Arrow or Page UpGo to the previous page (arrow reversed in right-to-left)Pages mode, focus not in a form field
SpaceGo to the next pagePages mode, focus not on a button, link or form field
Shift+SpaceGo to the previous pagePages mode, focus not on a button, link or form field
HomeGo to the first pagePages mode, focus not in a form field
EndGo to the last pagePages mode, focus not in a form field

reader-view documentation

<recently-visited> Button
KeyActionWhen
Enter or SpaceToggle pause, toggle anchors or clear the historyNative behaviour of button

recently-visited documentation

<selection-menu> Toolbar
KeyActionWhen
Alt+F10Open the toolbar for the current selection if needed and focus its first itemText is selected
EscClose the toolbar; if focus was in it, return focus and the selection to the textToolbar open
Right ArrowMove to the next item, wrapping (reversed in right-to-left)Focus in the toolbar
Left ArrowMove to the previous item, wrapping (reversed in right-to-left)Focus in the toolbar
HomeMove to the first itemFocus in the toolbar
EndMove to the last itemFocus in the toolbar

selection-menu documentation

<settings-panel> Dialog (non-modal)
KeyActionWhen
EscClose the panel; focus returns to the trigger when it was inside the panelPanel open and focus on the trigger or inside the panel
Enter or SpaceOpen or close a settings sectionNative behaviour of summary

settings-panel documentation

<share-wc> Native buttons in a named group
KeyActionWhen
Enter or SpaceShare to the platform, copy the link or open the system share sheetNative behaviour of button

share-wc documentation

<short-cuts> Native dialog
KeyActionWhen
?Open or close the shortcuts dialog (the key is set by the hotkey attribute)Focus anywhere on the page except in a form field, while character shortcuts are enabled
EscClose the dialogNative behaviour of dialog

short-cuts documentation

<site-map> Native details/summary (default mode); Tree view (ia-tree mode)
KeyActionWhen
Enter or SpaceOpen or close a groupNative behaviour of summary (default mode)
Down ArrowMove to the next visible nodeia-tree mode, focus on a tree item
Up ArrowMove to the previous visible nodeia-tree mode, focus on a tree item
Right ArrowExpand a collapsed node, or move to the first child of an expanded node (reversed in right-to-left)ia-tree mode, focus on a tree item
Left ArrowCollapse an expanded node, or move to the parent node (reversed in right-to-left)ia-tree mode, focus on a tree item
EnterFollow the node's link, or toggle a node that has no linkia-tree mode, focus on a tree item
SpaceToggle a node that has children, or follow the link of a leaf nodeia-tree mode, focus on a tree item
HomeMove to the first nodeia-tree mode, focus on a tree item
EndMove to the last visible nodeia-tree mode, focus on a tree item
Down ArrowMove to the first child of the active nodeia-tree mode with data-view="visual", vertical orientation (default), focus on the diagram
Up ArrowMove to the parent of the active nodeia-tree mode with data-view="visual", vertical orientation (default), focus on the diagram
Right ArrowMove to the next siblingia-tree mode with data-view="visual", vertical orientation (default), focus on the diagram
Left ArrowMove to the previous siblingia-tree mode with data-view="visual", vertical orientation (default), focus on the diagram
Right ArrowMove to the first child of the active nodeia-tree mode with data-view="visual" and data-orientation="horizontal", focus on the diagram
Left ArrowMove to the parent of the active nodeia-tree mode with data-view="visual" and data-orientation="horizontal", focus on the diagram
Down ArrowMove to the next siblingia-tree mode with data-view="visual" and data-orientation="horizontal", focus on the diagram
Up ArrowMove to the previous siblingia-tree mode with data-view="visual" and data-orientation="horizontal", focus on the diagram
EnterFollow the active node's link, or expand or collapse a node that has no linkia-tree mode with data-view="visual", focus on the diagram
SpaceExpand or collapse the active nodeia-tree mode with data-view="visual", focus on the diagram
HomeMove to the root nodeia-tree mode with data-view="visual", focus on the diagram
EndMove to the last visible nodeia-tree mode with data-view="visual", focus on the diagram

site-map documentation

<slide-accept> Slider
KeyActionWhen
Right Arrow or Up ArrowMove the handle forward by 5%, accepting once it passes the threshold (ArrowRight and ArrowLeft reversed in right-to-left)Focus on the handle
Left Arrow or Down ArrowMove the handle back by 5%Focus on the handle
Shift+Right Arrow or Shift+Up ArrowMove the handle forward by 20%Focus on the handle
Shift+Left Arrow or Shift+Down ArrowMove the handle back by 20%Focus on the handle
End or Enter or SpaceAccept immediatelyFocus on the handle
HomeReturn the handle to the startFocus on the handle

slide-accept documentation

<social-embed> Button
KeyActionWhen
Enter or SpaceLoad the embed and move focus into itNative behaviour of button

social-embed documentation

<social-feed> A labelled, focusable scrolling region holding a WAI-ARIA feed (activity-feed) of articles
KeyActionWhen
TabFocus the scrolling list, then scroll it with the arrow keysThe activity-feed is in the tab order
Page Down or Page UpMove between entriesFocus is on an entry (activity-feed)

social-feed documentation

<split-surface> Window splitter
KeyActionWhen
Left ArrowShrink the first panel by 1% (reversed in right-to-left)Focus on the divider, side-by-side panels
Right ArrowGrow the first panel by 1% (reversed in right-to-left)Focus on the divider, side-by-side panels
Up ArrowShrink the first panel by 1%Focus on the divider, direction="vertical"
Down ArrowGrow the first panel by 1%Focus on the divider, direction="vertical"
Shift+Left Arrow or Shift+Right Arrow or Shift+Up Arrow or Shift+Down ArrowResize in 10% steps in the direction of the arrowFocus on the divider
HomeShrink the first panel to its minimum sizeFocus on the divider
EndGrow the first panel to its maximum sizeFocus on the divider
EnterCollapse the first panel, or restore it when collapsedFocus on the divider, collapsible attribute set

split-surface documentation

<star-rating> Native form controls
KeyActionWhen
Delete or BackspaceClear the ratingFocus on the selected star, with the rating effect loaded

star-rating documentation

<stepper-wc> Spin button
KeyActionWhen
Up Arrow or Right ArrowIncrease by one step (ArrowRight and ArrowLeft reversed in right-to-left)Focus on the value
Down Arrow or Left ArrowDecrease by one stepFocus on the value
Page UpIncrease by ten stepsFocus on the value
Page DownDecrease by ten stepsFocus on the value
HomeJump to the minimumFocus on the value
EndJump to the maximumFocus on the value

stepper-wc documentation

<tab-set> Native details/summary (exclusive group)
KeyActionWhen
Right ArrowOpen and focus the next tab, wrapping to the first (reversed in right-to-left)Focus on a tab, horizontal orientation
Left ArrowOpen and focus the previous tab, wrapping to the last (reversed in right-to-left)Focus on a tab, horizontal orientation
Down ArrowOpen and focus the next tab, wrapping to the firstFocus on a tab, data-orientation="vertical"
Up ArrowOpen and focus the previous tab, wrapping to the lastFocus on a tab, data-orientation="vertical"
HomeOpen and focus the first tabFocus on a tab
EndOpen and focus the last tabFocus on a tab

tab-set documentation

<text-reader> Native form controls
KeyActionWhen
EscHide the floating toolbar and move focus to the triggervariant="icon" with the toolbar showing, focus on the trigger or inside the toolbar

text-reader documentation

<theme-picker> Non-modal dialog with native form controls
KeyActionWhen
EscClose the panel and move focus to the triggerPopover variant with the panel open, focus anywhere on the page

theme-picker documentation

<time-picker> Combobox with a dialog popup of spin buttons
KeyActionWhen
Down ArrowOpen the panel and focus its first segmentFocus in the text input
EnterCommit the typed time and close the panelFocus in the text input
EscClose the panel and restore the displayed valueFocus in the text input
Up ArrowIncrease the unit by one stepFocus on an hours, minutes or seconds spin button
Down ArrowDecrease the unit by one stepFocus on an hours, minutes or seconds spin button
Page UpIncrease minutes or seconds by 10 (or the next multiple of the step at or above 10), hours by one step; other units do not changeFocus on an hours, minutes or seconds spin button
Page DownDecrease minutes or seconds by 10 (or the next multiple of the step at or above 10), hours by one step; other units do not changeFocus on an hours, minutes or seconds spin button
HomeSet the unit to its minimumFocus on an hours, minutes or seconds spin button
EndSet the unit to its maximumFocus on an hours, minutes or seconds spin button
0 or 1 or 2 or 3 or 4 or 5 or 6 or 7 or 8 or 9Type the unit's value directlyFocus on an hours, minutes or seconds spin button
Right ArrowMove to the next segment (reversed in right-to-left)Focus on a spin button or the AM/PM button
Left ArrowMove to the previous segment (reversed in right-to-left)Focus on a spin button or the AM/PM button
EscClose the panel and return focus to the text inputFocus on a spin button or the AM/PM button

time-picker documentation

<toast-msg> Live region
KeyActionWhen
EscDismiss the toast that holds focus and move focus to the next toast or back to where it wasFocus on a button inside a toast

toast-msg documentation

<tool-tip> Tooltip
KeyActionWhen
EscHide the tooltip or card; from inside a card, return focus to the triggerTooltip or card showing, focus anywhere on the page

tool-tip documentation

<topic-map> Native details/summary
KeyActionWhen
Enter or SpaceOpen or close a topicNative behaviour of summary

topic-map documentation

<version-switcher> Native popover
KeyActionWhen
Down ArrowMove to the next versionFocus on a version in the picker
Up ArrowMove to the previous versionFocus on a version in the picker
HomeMove to the first versionFocus on a version in the picker
EndMove to the last versionFocus on a version in the picker
EscClose the pickerNative behaviour of popover

version-switcher documentation

<video-player> Media player with custom controls built from native buttons and range inputs
KeyActionWhen
Space or kPlay or pauseFocus on the player, not on one of its controls
Left ArrowSkip back 10 secondsFocus on the player, not on one of its controls
Right ArrowSkip forward 10 secondsFocus on the player, not on one of its controls
Up ArrowRaise the volume by 5%Focus on the player, not on one of its controls
Down ArrowLower the volume by 5%Focus on the player, not on one of its controls
mMute or unmuteFocus on the player, not on one of its controls
fEnter or leave fullscreenFocus on the player, not on one of its controls
cTurn captions on or offFocus on the player, not on one of its controls
Left Arrow or Down ArrowSeek back 5 secondsFocus on the seek slider
Right Arrow or Up ArrowSeek forward 5 secondsFocus on the seek slider

video-player documentation

<watch-wc> Button
KeyActionWhen
Enter or SpaceStart or stop watching the pageNative behaviour of button

watch-wc documentation

<week-view> Native table with roving focus across events
KeyActionWhen
Down ArrowMove to the next event in the same dayFocus on an event
Up ArrowMove to the previous event in the same dayFocus on an event
Right ArrowMove to the closest event in time in the next day that has events (reversed in right-to-left)Focus on an event
Left ArrowMove to the closest event in time in the previous day that has events (reversed in right-to-left)Focus on an event
HomeMove to the first event in the viewFocus on an event
EndMove to the last event in the viewFocus on an event
Enter or SpaceFire week-view:event-click for the eventFocus on the event itself, not a link or button inside it

week-view documentation

<youtube-player> Button
KeyActionWhen
Enter or SpaceLoad the video and move focus to the player frameNative behaviour of button

youtube-player documentation

↑