From 582ce6b2b6175fc724ec8a45f8826de0db925c98 Mon Sep 17 00:00:00 2001 From: Krzysztof kuhy Rudnicki Date: Wed, 11 Nov 2026 02:26:15 +0100 Subject: [PATCH] web: empty() always speaks its label Co-Authored-By: Claude Opus 5.5 --- web/src/ui/build.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/ui/build.ts b/web/src/ui/build.ts index fcd7ba1..5fd26d4 100644 --- a/web/src/ui/build.ts +++ b/web/src/ui/build.ts @@ -68,7 +68,7 @@ export function empty(label: string): HTMLParagraphElement { 'p', { class: 'empty', 'aria-label': label }, h('span', { class: 'empty-icon', 'aria-hidden': 'true' }, '📭'), - ...(label ? [h('span', { class: 'sr-only' }, label)] : []), + h('span', { class: 'sr-only' }, label), ) }