Skip to content

Commit

Permalink
Merge pull request #68 from github/add-aria-live-regions-to-state-blocks
Browse files Browse the repository at this point in the history
Add aria live regions to state blocks
  • Loading branch information
keithamus authored Jul 5, 2023
2 parents ab9fcff + f63dbba commit cef4eb7
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 cef4eb7

Please sign in to comment.