Key / stateFunctionTab- Moves focus to the active tab. - When the tab list contains the focus, moves focus to the next element in the tab sequence, which is the tabpanel element.Right Arrow, Left Arrow- Moves focus to the next tab. - Activates the newly focused tab. - If focus is on the last tab, moves focus to the first tab.Home, End- Moves focus to the first/last tab and activates it.
ARIA enhancements
Internal ARIA that is managed by the component:
prev
next
ARIAUsagerole="tablist"Indicates that the element serves as a container for a set of tabs.role="tab"Indicates the button serves as a tab control.role="tabpanel"Indicates the tabs-item serves as a container for tabpanel content.aria-label="STRING"Adds accessible name to the tabs-item.aria-selected="BOOLEAN"Indicates the tab is selected/deselected and its associated tabpanel is visible/hidden.
Due to the nature of Web Components and shadowDOM, there are limitations in the usage of some ARIA
attributes if they try to set relationship between elements in different shadowDOM's or shadowDOM/lightDOM combinations.