Tabset is not keyboard operable
| Field | Value |
|---|---|
| Rule code | Manual_TabsetKeyboard_Inoperable |
| WCAG conformance level | A |
| WCAG success criterion | 2.1.1 Keyboard |
| Must be fixed at source | No |
Description
A tabset has been detected that is not operable via keyboard controls, making it unusable for users who rely on keyboard navigation. Proper keyboard operability is essential in allowing all users to interact with the tabset effectively.
How to fix
Ensure that the tabset is keyboard operable by implementing keyboard navigation using event listeners for keydown events. For example, allow users to switch tabs using the arrow keys: document.addEventListener('keydown', function(event) { if (event.key === 'ArrowRight') { /* Switch to next tab */ } });.