Skip to content

Commit 4df6626

Browse files
authored
associate form controls to labels (#186)
1 parent f1fc4fe commit 4df6626

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tools/color-mixer/index.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -134,15 +134,15 @@ <h3>Color mixer</h3>
134134
<label id="mix-output-text"></label>
135135

136136
<div>
137-
<label id="percentage-one-label">50%</label>
137+
<label id="percentage-one-label" for="percentage-one">50%</label>
138138
<input id="percentage-one" type="range" name="percent1" step="0.1" />
139139
</div>
140140
<div>
141-
<label id="percentage-two-label">50%</label>
141+
<label id="percentage-two-label" for="percentage-two">50%</label>
142142
<input id="percentage-two" type="range" name="percent2" step="0.1" />
143143
</div>
144144

145-
<label>color space: </label>
145+
<label for="color-space">color space: </label>
146146
<select id="color-space">
147147
<option value="srgb">srgb</option>
148148
<option value="srgb-linear">srgb-linear</option>
@@ -157,7 +157,7 @@ <h3>Color mixer</h3>
157157
<option value="oklch">oklch</option>
158158
</select>
159159

160-
<label id="interpolation-method-label">interpolation method: </label>
160+
<label id="interpolation-method-label" for="interpolation-method">interpolation method: </label>
161161
<select id="interpolation-method">
162162
<option value="shorter hue" selected>shorter hue</option>
163163
<option value="longer hue">longer hue</option>

0 commit comments

Comments
 (0)