Skip to content

Commit 1dd7db4

Browse files
authored
Merge pull request #70 from github/add-aria-atomic-aria-describedby-in-example
add aria-atomic/aria-describedby in example
2 parents fd33414 + a870f3c commit 1dd7db4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

examples/index.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ <h2>Simple form</h2>
1919

2020
<label for="simple-field">Desired username*:</label>
2121
<auto-check csrf="foo" src="/demo" required>
22-
<input id="simple-field" autofocus name="foo" required />
23-
<code aria-live="polite" class="state"></code>
22+
<input id="simple-field" autofocus name="foo" required aria-describedy="state1"/>
23+
<code id="state1" aria-atomic="true" aria-live="polite" class="state"></code>
2424
</auto-check>
2525
<button value="1" name="form">submit</button>
2626
</form>
@@ -33,8 +33,8 @@ <h2>Form that has custom validity messages</h2>
3333

3434
<label for="custom-field">Desired username*:</label>
3535
<auto-check csrf="foo" src="/demo" required>
36-
<input id="custom-field" autofocus class="json" name="foo" required />
37-
<code aria-live="polite" class="state"></code>
36+
<input id="custom-field" autofocus class="json" name="foo" required aria-describedby="state2"/>
37+
<code id="state2" aria-atomic="true" aria-live="polite" class="state"></code>
3838
</auto-check>
3939
<button value="2" name="form">submit</button>
4040
</form>

0 commit comments

Comments
 (0)