From ef4d941d3126b916674e72af4a2e260667358c4b Mon Sep 17 00:00:00 2001 From: Christian Geyer <149682967+camelCaseChris@users.noreply.github.com> Date: Fri, 26 Jan 2024 11:48:19 +0100 Subject: [PATCH] Handle Svelte Compiler Warnings (#3607) * Fix SCSS preprocessor in Svelte config * Adapt SCSS config * Ignore Svelte key event warnings * Remove unused component props * Ignore Svelte tabindex warnings * Ignore Svelte href warnings * Fix unused CSS selectors * Ignore Svelte autofocus warnings * Fix Svelte warnings about redundant aria roles * Fix warning about missing aria role * Ignore warnings about href values * Fix warnings about non-root "$:" * Fix deprecation warnings about using "type" --------- Co-authored-by: Ndricim Co-authored-by: Johannes Doberer --- core/src/Alerts.svelte | 2 +- core/src/App.svelte | 31 ++++++++----------- core/src/Authorization.svelte | 8 ++--- .../src/AuthorizationSimpleProfileMenu.svelte | 8 ++++- core/src/Backdrop.svelte | 2 +- core/src/ConfirmationModal.svelte | 4 +-- core/src/Modal.svelte | 3 +- core/src/SplitView.svelte | 8 +++-- core/src/TopNavDropDown.svelte | 3 +- core/src/UserSettingsDialog.svelte | 5 ++- core/src/UserSettingsEditor.svelte | 6 ++-- core/src/navigation/BadgeCounter.svelte | 8 ++--- core/src/navigation/Breadcrumb.svelte | 5 +-- core/src/navigation/ContextSwitcher.svelte | 16 ++-------- core/src/navigation/ContextSwitcherNav.svelte | 6 +++- core/src/navigation/GlobalNav.svelte | 4 +-- core/src/navigation/GlobalSearch.svelte | 9 ++++-- .../navigation/GlobalSearchCentered.svelte | 8 +++-- core/src/navigation/LeftNav.svelte | 27 +++++++--------- core/src/navigation/LogoTitle.svelte | 8 +++-- .../navigation/MobileTopNavDropDown.svelte | 3 +- core/src/navigation/ProductSwitcher.svelte | 4 ++- core/src/navigation/StatusBadge.svelte | 2 +- core/src/navigation/TabNav.svelte | 11 ++++--- core/src/navigation/TopNav.svelte | 25 +++++++-------- core/svelte.config.cjs | 7 ++++- 26 files changed, 116 insertions(+), 107 deletions(-) diff --git a/core/src/Alerts.svelte b/core/src/Alerts.svelte index 4d108a628b..381f325f73 100644 --- a/core/src/Alerts.svelte +++ b/core/src/Alerts.svelte @@ -138,7 +138,7 @@ {/each} -