fix: resolve all linter errors and a11y warnings
CI / test (push) Has been cancelled
CI / docker-build (push) Has been cancelled
CI / lint-and-check (push) Has been cancelled

- Fix TS errors: editMode property order, implicit any, string|undefined
- Add $state() to bind:this element refs (IconGrid, EntityPicker, etc.)
- Fix a11y: labels, aria-labels, roles, tabindex on dialogs
- Remove unused imports (tick, svelte-i18n)
- Make AutocompleteInput/TagsInput accept optional string values
This commit is contained in:
2026-04-10 19:05:25 +03:00
parent f96cbbca56
commit 44e1849821
20 changed files with 59 additions and 33 deletions
@@ -4,8 +4,8 @@
import SearchResult from './SearchResult.svelte';
import { goto } from '$app/navigation';
let inputEl: HTMLInputElement;
let resultsEl: HTMLDivElement;
let inputEl: HTMLInputElement = $state() as HTMLInputElement;
let resultsEl: HTMLDivElement = $state() as HTMLDivElement;
$effect(() => {
if (search.open && inputEl) {
@@ -68,10 +68,11 @@
</script>
{#if search.open}
<!-- svelte-ignore a11y_no_static_element_interactions -->
<!-- svelte-ignore a11y_click_events_have_key_events -->
<div
class="fixed inset-0 z-50 flex items-start justify-center bg-black/50 pt-[15vh] backdrop-blur-sm"
onclick={handleBackdropClick}
role="presentation"
style="animation: searchFadeIn 0.15s ease-out"
>
<!-- Dialog -->