Skip to content

Commit

Permalink
add aria-live regions to state blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
keithamus committed Jul 5, 2023
1 parent 3426757 commit f63dbba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ <h2>Simple form</h2>
<label for="simple-field">Desired username*:</label>
<auto-check csrf="foo" src="/demo" required>
<input id="simple-field" autofocus name="foo" required />
<code class="state"></code>
<code aria-live="polite" class="state"></code>
</auto-check>
<button value="1" name="form">submit</button>
</form>
Expand All @@ -34,7 +34,7 @@ <h2>Form that has custom validity messages</h2>
<label for="custom-field">Desired username*:</label>
<auto-check csrf="foo" src="/demo" required>
<input id="custom-field" autofocus class="json" name="foo" required />
<code class="state"></code>
<code aria-live="polite" class="state"></code>
</auto-check>
<button value="2" name="form">submit</button>
</form>
Expand Down

0 comments on commit f63dbba

Please sign in to comment.