Alert

An inline message with a severity: an icon, the message, an optional AlertTitle, an action and a close control. role="alert" is announced at once; "status", politely.

Accessibility

  • A role="alert" is announced as it appears; use "status" for what need not interrupt.
  • The icon is decoration, hidden from assistive technology: the message says the rest.
  • Name the close control with closeLabel: an icon alone says nothing.