Skip to content

Commit 3d687cd

Browse files
authored
Fix label to point to id of input (#277)
1 parent 84be60f commit 3d687cd

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

pkg/web/src/routes/admin/+page.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ function updateRecommendations() {
119119
</h1>
120120
<form class="space-y-4 md:space-y-6" on:submit|preventDefault={handleSubmit}>
121121
<div>
122-
<label for="text" class="block mb-2 text-sm font-medium text-gray-900"
122+
<label for="username" class="block mb-2 text-sm font-medium text-gray-900"
123123
>Username (hint: admin)</label
124124
>
125125
<input
@@ -132,7 +132,7 @@ function updateRecommendations() {
132132
/>
133133
</div>
134134
<div>
135-
<label for="text" class="block mb-2 text-sm font-medium text-gray-900"
135+
<label for="password" class="block mb-2 text-sm font-medium text-gray-900"
136136
>Password (hint: admin)</label
137137
>
138138
<input

pkg/web/src/routes/login/+page.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ async function handleLogout() {
164164
<form class="space-y-4 md:space-y-6" on:submit|preventDefault={handleSubmit}>
165165
<input type="hidden" name="csrftoken" id="csrf-token" value="" />
166166
<div>
167-
<label for="text" class="block mb-2 text-sm font-medium text-gray-900"
167+
<label for="username" class="block mb-2 text-sm font-medium text-gray-900"
168168
>Username (hint: default)</label
169169
>
170170
<input
@@ -177,7 +177,7 @@ async function handleLogout() {
177177
/>
178178
</div>
179179
<div>
180-
<label for="text" class="block mb-2 text-sm font-medium text-gray-900"
180+
<label for="password" class="block mb-2 text-sm font-medium text-gray-900"
181181
>Password (hint: 12345678)</label
182182
>
183183
<input

0 commit comments

Comments
 (0)