Skip to main content

What are you looking for?

Try searching for…

Components

Badge

Badge is a non-interactive component that displays status with or without a number. Use Tag if you want text instead of a number.

What you need to check

Badge that shows important information must be included in the interactive element’s accessible name.

If Badge is placed inline (inside the element), the content becomes part of the accessible name. Example: Button with the text "Inbox" and a Badge with "2" will be announced as "Inbox 2".

WCAG: 1.3.1 Info and relationships


If a Badge is placed outside the interactive element, the badge information must be added to the element’s accessible name.

This often applies when a Badge is shown in the corner of a button or icon. In such cases, the badge value must be added manually to the element’s accessible name (for example via aria-label).

WCAG: 1.3.1 Info and relationships


Badge that changes value (for example 1 → 2) must be announced to screen readers

WCAG: 4.1.3 Status messages

Edit this page on github.com (opens in a new tab)