From c89792fe46ab0b21bba2b40e0fff490a11e47e75 Mon Sep 17 00:00:00 2001 From: Till JS Date: Mon, 27 Apr 2026 14:24:08 +0200 Subject: [PATCH] fix(broadcast): silence unused-CSS check on .failed-count (selector reused via :global) Co-Authored-By: Claude Opus 4.7 (1M context) --- .../src/lib/modules/broadcast/views/ComposeView.svelte | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/apps/mana/apps/web/src/lib/modules/broadcast/views/ComposeView.svelte b/apps/mana/apps/web/src/lib/modules/broadcast/views/ComposeView.svelte index e4482d31c..48fea4f3a 100644 --- a/apps/mana/apps/web/src/lib/modules/broadcast/views/ComposeView.svelte +++ b/apps/mana/apps/web/src/lib/modules/broadcast/views/ComposeView.svelte @@ -745,8 +745,14 @@ font-weight: 600; } - .failed-count { - color: #b91c1c; + /* `.failed-count` is referenced from the {@html …} done_failed_html + locale strings — svelte-check can't see runtime-injected HTML, so + the nested `:global` form keeps the rule alive without tripping + the css_unused_selector warning. */ + :global { + .failed-count { + color: #b91c1c; + } } .error-details {