Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

docs(toast): correct the a11y-guard header count and de-duplicate the pill comment

[._.]/ Adam Eivycad9f2d410a1
diff --git a/client/src/a11yConventions.test.js b/client/src/a11yConventions.test.js
index c9ba18024d..e2c0b25043 100644
--- a/client/src/a11yConventions.test.js
+++ b/client/src/a11yConventions.test.js
@@ -1,8 +1,8 @@
/**
* Repo-wide accessibility conventions.
*
- * These encode the two regressions that keep reappearing across a11y audit
- * passes, so a new component fails the suite instead of shipping the gap:
+ * These encode the regressions that keep reappearing across a11y audit passes,
+ * so a new component fails the suite instead of shipping the gap:
*
* 1. A hand-rolled `fixed inset-0 … bg-black/N` overlay instead of the shared
* `ui/Modal`, which owns the focus trap, the Esc stack, `role="dialog"`,
diff --git a/client/src/components/ui/Toast.jsx b/client/src/components/ui/Toast.jsx
index 5a45b15389..c9e9ee1df5 100644
--- a/client/src/components/ui/Toast.jsx
+++ b/client/src/components/ui/Toast.jsx
@@ -184,13 +184,13 @@ function ToastItem({ t, toastOptions }) {
return (
<>
{isCollapsed && (
- // Re-expanding does NOT pin the toast open: the timer restarts, so a tap
- // on a touch device (where no mouseleave ever arrives) re-collapses on
- // its own.
- // No hover handlers here: the timer effect short-circuits on
- // `collapsed` so `held` couldn't change anything, and the pill unmounts
- // on click — browsers fire no `mouseleave` on a removed node, so a
- // mouse click would strand `held` at true and suppress the re-collapse.
+ // The pill deliberately carries no hover handlers: the timer effect
+ // short-circuits on `collapsed` before it reads `held`, so they couldn't
+ // change anything — and the pill unmounts on click, where no
+ // `mouseleave` ever fires, which would strand `held` at true and
+ // suppress the re-collapse below. Re-expanding doesn't pin the toast
+ // open either; the timer just restarts, so a tap on a touch device
+ // folds it away again on its own.
<button
type="button"
onClick={() => setCollapsed(false)}