GitHub

alert

error and warning use role="alert" — screen readers announce them immediately. info and success use role="status" for a polite announcement.

Your account is pending email verification.
Saved Your changes have been saved.
alert({ variant: 'info',    content: 'Your account is pending email verification.' })
alert({ variant: 'success', title: 'Saved',    content: 'Your changes have been saved.' })
alert({ variant: 'warning', title: 'Heads up', content: 'This action cannot be undone.' })
alert({ variant: 'error',   title: 'Failed',   content: escHtml(server.error) })