[go: up one dir, main page]

Alert > Indicate alert type or meaning

Problem

Icon doesn't add meaning and there's no text that indicates alert type.

Solution

Include aria-label on the parent container (should have either role="status" or role="alert") that concisely conveys the nature of the alert.

Alternately, aria-labelledby could reference the alert title (heading) or visually hidden text within, so long as that text also concisely conveys the nature of the alert.

Edited by Jeremy Elder