Badges

A badge is a visual indicator that draws attention to an interface element. It enhances the component to which it is attached with additional information.

3 new emails 3 new emails 3 new emails

Variations

Basic Badge

With rounded corners in 3 different sizes.

7 new emailscopydone
7 new emailscopydone
7 new emailscopydone

Basic Badge with Icon

With rounded corners and assistive icon in 3 different sizes.

User IconUser icon associated with a particular user account7 new emailscopydone
User IconUser icon associated with a particular user account7 new emailscopydone
7 new emailscopydone

Rounded Badge

With fully rounded corners in 3 different sizes.

7 new emailscopydone
7 new emailscopydone
7 new emailscopydone

Rounded Badge with Icon

With fully rounded corners and assistive icon in 3 different sizes.

User IconUser icon associated with a particular user account7 new emailscopydone
User IconUser icon associated with a particular user account7 new emailscopydone
7 new emailscopydone

Usage

A Badge is a small numerical value or status descriptor for UI elements. Use the Badge Component Symbol to draw attention to another interface element or to display a notification (ie unread messages next to en email icon). It enhances the component to which it is attached with additional information.

Specs

Badges scale in 3 sizes from base to small and extra small and come both in normal or full rounded shapes.

  • base: Height 1.25rem (20px), font-size 0.875rem (14px), icon size 1rem (16px)
  • sm: Height 1rem (16px), font-size 0.75rem (12px), icon size 1rem (16px)
  • xs: Height 0.25rem (4px)

Accessibility notes

A screen reader only inner text, provides information on the badge's notification functionality. On the variations with the icon, an aria-hidden attribute is added to completely exclude them from the accessibility tree since the icons are purely decorative.