Stop the alert interrupting, unless it is asked to
An error or warning alert was role="alert", an assertive live region — but the usual alert is part of the page as it renders, which some screen readers then announce over the page title, and a Livewire morph re-announces. It is now role="status" whatever its colour, with an `assertive` prop for a notice put on screen in answer to something the person just did. Its 40px dismiss button takes the shared touch-target. Plan step 18, actions.md ACT-18, ACT-36. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Qwx5USif3wFFmxtHg5U1g9
This commit is contained in:
co-authored by
Claude Opus 5
parent
7bc4f740e7
commit
c33d90c653
@@ -388,7 +388,7 @@ A notice in the page, in the state's container colour with its icon:
|
||||
</x-alert>
|
||||
```
|
||||
|
||||
`color` (alias `tone`): `info` (default), `success`, `warning`, `error`, `primary`, `secondary`, `tertiary`, `neutral`. `icon` overrides the state icon; `:icon="false"` removes it. Errors and warnings are `role="alert"`, the rest `role="status"`.
|
||||
`color` (alias `tone`): `info` (default), `success`, `warning`, `error`, `primary`, `secondary`, `tertiary`, `neutral`. `icon` overrides the state icon; `:icon="false"` removes it. Every alert is `role="status"`, whatever its colour: it is usually on the page as it renders, and an assertive region talks over the page title on load. Pass `assertive` for one put on screen in answer to something the person just did.
|
||||
|
||||
### `<x-rich-tooltip>`
|
||||
|
||||
|
||||
Reference in New Issue
Block a user