From dc25f1c833767d8ec8471f673b233c3f20adfe78 Mon Sep 17 00:00:00 2001 From: Tzu-Yu Lee Date: Sat, 17 May 2025 03:00:59 +0800 Subject: [PATCH 1/2] refactor(svelte): change a11y inline styles to classes In some environments, inline styles are not permitted due to security issues (e.g. strict CSP). The a11y messages will be visible in these environments due to browsers blocking inline styles. Change the inline styles to use classes instead. --- .../A11yDescriptions/A11yDescriptions.svelte | 24 ++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/packages/svelte/src/lib/components/A11yDescriptions/A11yDescriptions.svelte b/packages/svelte/src/lib/components/A11yDescriptions/A11yDescriptions.svelte index a26778c1..a9716478 100644 --- a/packages/svelte/src/lib/components/A11yDescriptions/A11yDescriptions.svelte +++ b/packages/svelte/src/lib/components/A11yDescriptions/A11yDescriptions.svelte @@ -6,14 +6,14 @@ let { store }: { store: SvelteFlowStore } = $props(); -