Badge

Accessibility

Screen reader support

  • The badge contains only an icon
  • The content is not sufficient to convey the full meaning
  • Additional context would help understand the badge’s purpose
<Badge ariaLabel="4 passengers" icon={<Icons.Passenger />}>
4
</Badge>

Icons

  • Provide an ariaLabel if the icon has a meaning by itself that is not obvious to screen readers, regardless of the existence of text
  • If the icon is decorative and the badge contains text, the icon should be marked as aria-hidden="true"