- Docs
- Components
- Feedback
Alert
A message in the page: above a form, in a card, or across the top as a banner. It never takes focus, and never goes by itself.
- Import
- @qeetrix/react/experimental
- Status
- ExperimentalSince 0.0.4
- Renders
<div>Server-rendered- Tested
- WCAG 2.2 AAaxe on every pull request
01
Keyboard
| Keys | What happens |
|---|---|
| TabTab | To its actions and Dismiss; it never takes focus itself. |
02
Behaviour
- Tone in words
- A hidden word leads the title: "Warning: Directory sync is behind".
- Announced
- Only with announce, for an alert that appears: status politely, alert at once.
- Time
- It never disappears by itself.
- Forced colours
- A CanvasText border, with the 3px edge at its start; a banner keeps its rule.
03
Tested
On every change, before it ships.
- axe, WCAG 2.2 A and AA, in Chromium on every pull request
- Firefox and WebKit every night
- Reduced motion: what moves fades or holds still instead
- Forced colours and right to left