Skip to content

Tabs > badge counter should use SR only

Problem

The counter badge in a tab is announced, however it lacks context for what the number means and could be read simply as part of the tab label.

Solution

For example:

<span class="badge gl-tab-counter-badge badge-muted badge-pill gl-badge sm">250<span class="sr-only"> items</span></span>
Edited by Jeremy Elder