From 878f6d6d035b49386c4461dfc6069b29342c680f Mon Sep 17 00:00:00 2001 From: jennyf19 <19942418+jennyf19@users.noreply.github.com> Date: Mon, 27 Jul 2026 17:24:34 -0700 Subject: [PATCH] a11y: explicit aria-labels on icon-only buttons Add action-oriented aria-labels to the suggest-mantra, focus, remove, add-note, park-thought, and log-win buttons so screen readers announce the action instead of the emoji (template + sample). Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 07e720ee-ca02-419e-9adb-300738b6fc76 --- .../daily-focus-board/assets/board.template.html | 14 +++++++------- .../daily-focus-board/examples/sample-board.html | 14 +++++++------- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/skills/daily-focus-board/assets/board.template.html b/skills/daily-focus-board/assets/board.template.html index 2d39f0d4..b2d470f2 100644 --- a/skills/daily-focus-board/assets/board.template.html +++ b/skills/daily-focus-board/assets/board.template.html @@ -197,7 +197,7 @@
today's mantra - +
@@ -232,14 +232,14 @@

🧠 Parked thoughts

Something pulling at your attention? Park it here so it's out of your head — deal with it later, not now.

-
+

🔥 Today's momentum

Every step you log lands here, newest first. Starting counts. Small wins count.

-
+
@@ -326,7 +326,7 @@ function render(){ c.className="card "+st+(carried?" carried":"")+(state.focus===t.id?" focused":"")+(q?" q-"+q:""); c.dataset.cardid=t.id; const dh=dueStr(t); - const rmHtml=t.added?``:""; + const rmHtml=t.added?``:""; const metaHtml=`
` +`
${metaHtml}`; @@ -353,10 +353,10 @@ function render(){
${esc(t.emoji||"•")}
${esc(t.title)}
${t.sub?`
${esc(t.sub)}
`:""}${dh?`
${dh.txt}
`:""}
- ${rmHtml} + ${rmHtml} ${notes.length?`
${notes.map((n,i)=>`
${fmt(n.t)}${esc(n.txt)}
`).join("")}
`:""}
${st!=="done"?``:""}
-
${metaHtml}`; +
${metaHtml}`; cardsEl.appendChild(c); } }); diff --git a/skills/daily-focus-board/examples/sample-board.html b/skills/daily-focus-board/examples/sample-board.html index 62f8c4fe..0a5aeb63 100644 --- a/skills/daily-focus-board/examples/sample-board.html +++ b/skills/daily-focus-board/examples/sample-board.html @@ -205,7 +205,7 @@
today's mantra - +
@@ -240,14 +240,14 @@

🧠 Parked thoughts

Something pulling at your attention? Park it here so it's out of your head — deal with it later, not now.

-
+

🔥 Today's momentum

Every step you log lands here, newest first. Starting counts. Small wins count.

-
+
@@ -334,7 +334,7 @@ function render(){ c.className="card "+st+(carried?" carried":"")+(state.focus===t.id?" focused":"")+(q?" q-"+q:""); c.dataset.cardid=t.id; const dh=dueStr(t); - const rmHtml=t.added?``:""; + const rmHtml=t.added?``:""; const metaHtml=`
` +`
${metaHtml}`; @@ -361,10 +361,10 @@ function render(){
${esc(t.emoji||"•")}
${esc(t.title)}
${t.sub?`
${esc(t.sub)}
`:""}${dh?`
${dh.txt}
`:""}
- ${rmHtml} + ${rmHtml} ${notes.length?`
${notes.map((n,i)=>`
${fmt(n.t)}${esc(n.txt)}
`).join("")}
`:""}
${st!=="done"?``:""}
-
${metaHtml}`; +
${metaHtml}`; cardsEl.appendChild(c); } });