Skip to content

Commit 2901ea6

Browse files
committed
fix(form): add id to error message div
Assign id 'error_name' to the name error message div for improved testability and accessibility.
1 parent fea83cf commit 2901ea6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/svelte5/test-app/Pages/FormComponent/EmptyAction.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<div>
1111
<input type="text" name="name" placeholder="Name" value="John Doe" />
1212
{#if errors.name}
13-
<div>{errors.name}</div>
13+
<div id="error_name">{errors.name}</div>
1414
{/if}
1515
</div>
1616

0 commit comments

Comments
 (0)