Skip to content

Commit 71c644e

Browse files
feat: fixes linter issues (#575)
# Motivation The linter found some issues with the `InputElementTest` component in Svelte 5. To prevent unexpected behavior, we want to address these issues. # Changes - resolves linter issues
1 parent a8559ee commit 71c644e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/tests/lib/components/InputElementTest.svelte

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
44
export let name: string;
55
export let placeholder = "test.placeholder";
6+
export let ariaLabel: string | undefined = undefined;
67
78
let inputField: HTMLInputElement | undefined;
89
@@ -11,6 +12,6 @@
1112
};
1213
</script>
1314

14-
<button on:click={changeFocus} id="test" />
15+
<button on:click={changeFocus} id="test" aria-label={ariaLabel}></button>
1516

1617
<Input bind:inputElement={inputField} {name} {placeholder} />

0 commit comments

Comments
 (0)