Skip to content

Commit abf21d1

Browse files
committed
Fix: bartificer#57 move description of # of pws & added aria info
form-text above read properly for screen readers but messed up vertical alignment of Generate button. Improve by adding aria-describedby for screen readers
1 parent ec157d9 commit abf21d1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/index.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -272,14 +272,14 @@ <h3>Generate Password(s)</h3>
272272
<form id="generatePasswords"> <!-- open input area for gen pw -->
273273
<div class="row">
274274
<div class="col-8 col-md-6 mb-3">
275-
<div class="form-text">Enter the number of passwords to be generated</div>
276275
<!-- Technically the label should be there but it's an audible repeat of span class -->
277276
<!-- <label class="visually-hidden" for="selectAmount">Number of passwords</label> -->
278277
<div class="input-group mt-2">
279278
<span class="input-group-text"># of passwords</span>
280279
<input type="number" min="1" max="10" step="1" value="3" class="form-control" name="selectAmount"
281-
id="selectAmount" />
280+
id="selectAmount" aria-describedby="enterNumberOfPasswords" />
282281
</div>
282+
<div id="enterNumberOfPasswords" class="form-text">Enter the number of passwords to be generated</div>
283283
<!-- doesn't show as stepper on iOS or Chromium -->
284284
</div>
285285
<div class="col-3 "> <!-- open col for Generate -->

0 commit comments

Comments
 (0)