fix: resolve all linter errors and a11y warnings
- 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:
@@ -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 -->
|
||||
|
||||
Reference in New Issue
Block a user