Commit 29db71c
committed
fix(docs): persistent error toasts with dismiss button
UX review: 3-second auto-dismiss is too short to read a JSON error
message. Errors now stay until the user dismisses them; success
toasts auto-dismiss as before.
- showToast: skip the auto-removal timer for type='error'.
- dismissToast: explicit removal handler invoked from a per-toast
close button.
- Template: error toasts render an aria-labeled dismiss button.
- Stylesheet: .toast-message flexes, .toast-dismiss is a 24×24
icon button matching the existing modal-close pattern.
Mobile + canvas-touch handlers + inline-line-number JSON errors
deferred to component refactor task.
Source: 4-expert website review — UX dimension top-3 friction.1 parent f1d9fbe commit 29db71c
7 files changed
Lines changed: 54 additions & 8 deletions
File tree
- docs
- dist
- _astro
- src
- components
- styles
Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
This file was deleted.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
0 commit comments