Skip to content

Commit a0e11d9

Browse files
author
Rich Harris
committed
a11y tweak
1 parent 507e887 commit a0e11d9

File tree

2 files changed

+18
-4
lines changed
  • content/tutorial/03-advanced-svelte/11-special-tags/01-debug

2 files changed

+18
-4
lines changed

content/tutorial/03-advanced-svelte/11-special-tags/01-debug/app-a/src/lib/App.svelte

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,15 @@
55
};
66
</script>
77

8-
<input bind:value={user.firstname} />
9-
<input bind:value={user.lastname} />
8+
<label>
9+
<input bind:value={user.firstname} />
10+
first name
11+
</label>
12+
13+
<label>
14+
<input bind:value={user.lastname} />
15+
last name
16+
</label>
1017

1118
{(console.log(user), '')}
1219

content/tutorial/03-advanced-svelte/11-special-tags/01-debug/app-b/src/lib/App.svelte

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,15 @@
55
};
66
</script>
77

8-
<input bind:value={user.firstname} />
9-
<input bind:value={user.lastname} />
8+
<label>
9+
<input bind:value={user.firstname} />
10+
first name
11+
</label>
12+
13+
<label>
14+
<input bind:value={user.lastname} />
15+
last name
16+
</label>
1017

1118
{@debug user}
1219

0 commit comments

Comments
 (0)