From 5ccde7995ef61cb8ae5b80018df71b30a8460a11 Mon Sep 17 00:00:00 2001 From: wukko Date: Fri, 12 Jul 2024 19:15:55 +0600 Subject: [PATCH] web: convert global state classes to data attributes also cleaned up unnecessary dupe in sidebar component --- web/src/components/settings/SettingsCategory.svelte | 2 +- web/src/components/sidebar/Sidebar.svelte | 6 ++---- web/src/components/sidebar/SidebarTab.svelte | 2 +- web/src/routes/+layout.svelte | 12 ++++++------ 4 files changed, 10 insertions(+), 12 deletions(-) diff --git a/web/src/components/settings/SettingsCategory.svelte b/web/src/components/settings/SettingsCategory.svelte index 31205539..df7dcb31 100644 --- a/web/src/components/settings/SettingsCategory.svelte +++ b/web/src/components/settings/SettingsCategory.svelte @@ -35,7 +35,7 @@ animation: highlight 2s; } - :global(.reduce-motion) .settings-content.animate { + :global([data-reduce-motion="true"]) .settings-content.animate { animation: highlight-lite 2s !important; } diff --git a/web/src/components/sidebar/Sidebar.svelte b/web/src/components/sidebar/Sidebar.svelte index e76be484..05ba72d9 100644 --- a/web/src/components/sidebar/Sidebar.svelte +++ b/web/src/components/sidebar/Sidebar.svelte @@ -1,8 +1,6 @@