Horizontal tabs are not keyboard navigable

Created on 8 May 2025, 4 months ago

Problem/motivation

it is not possible to navigate the horizontal tabs using the keyboard (e.g., tab key). In contrast, the default Bootstrap tab behavior, https://getbootstrap.com/docs/5.0/components/navs-tabs/#javascript-behavior , is keyboard navigable.

There should be keyboard navigable tabs, using spacebar per https://www.w3.org/WAI/ARIA/apg/patterns/tabs/examples/tabs-manual/

Analysis

This module sets the role="tab" on nav items. Bootstrap markup uses role="presentation." Apparently this is sufficient to change how keyboard navigation works.

Proposed resolution

Switch markup to role="presentation"

This module uses Gitlab CI for automated testing of proposed code changes. To contribute code changes, create a merge request. Patch files will not trigger automated testing and are not sufficient for review.
πŸ› Bug report
Status

Active

Version

3.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States mark_fullmer Tucson

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024