Skip to content
Primer printing platePrimer

Badge

Badges communicate a short status or category with text and optional color emphasis.

The badge is noninteractive text. Supply a meaningful label in its default slot and make sure the words communicate the status without depending on color. The application owns the surrounding content and page composition.

A badge does not receive keyboard focus. It does not act as a control or provide a live region. When a changing status needs an announcement, provide an appropriate live region in the application and verify it with assistive technology in context.

Primer tests published color roles for contrast, but those checks are not an accessibility certification for an application. Verify content order, zoom, screen-reader output, keyboard workflows, and touch targets in the actual interface. See the accessibility guide and specs/badge.yaml.