Tabs
Tabs allow users to move between different views of related content without leaving the current page. A tab strip includes at least two tabs. Only one tab is actively engaged at a time and is differentiated from inactive tabs by a colored indicator either on the top or bottom edge of the tab, depending on the variant. Tab strips can cover the full width of the page or be limited to content areas within components such as dialogs, cards, and drawers.
| Salt package | @salt-ds/core |
|---|
You need to check and test any focusable elements included in the tab content.
| Key | Function |
|---|---|
| Tab |
|
| Shift + Tab |
|
| Enter / Space |
|
| Left arrow / Right arrow |
|
| Up arrow / Down arrow |
|
| Home |
|
| End |
|
This aXe issue is flagged when using nested action buttons within tabs. This example follows the W3C's experimental "Tabs with Action Buttons" example and maintains expected keyboard and screen reader interaction patterns Digital accessibility guidance continues to evolve as new design patterns and component challenges emerge. While we have worked to align with existing guidelines, some complex interactions and modern UI patterns present unique accessibility challenges that current guidelines may not fully address. We have implemented solutions that we believe create the most understandable and accessible experience possible, even when they conflict with current automated testing tools.
We welcome feedback and alternative approaches to addressing any of these accessibility considerations. If you have suggestions for improving these components, please reach out to our team as we are committed to continuous accessibility improvement of our user experiences.