Skip to content

Commit 21f8209

Browse files
authored
Add link to known aria roles (#466)
1 parent a473c97 commit 21f8209

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/guide-which-query.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ possible. With this in mind, we recommend this order of priority:
1919
top preference for just about everything. There's not much you can't get
2020
with this (if you can't, it's possible your UI is inaccessible). Most
2121
often, this will be used with the `name` option like so:
22-
`getByRole('button', {name: /submit/i})`
22+
`getByRole('button', {name: /submit/i})`. Check the [list of roles](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/ARIA_Techniques#Roles).
2323
1. `getByLabelText`: Only really good for form fields, but this is the number
2424
one method a user finds those elements, so it should be your top
2525
preference.

0 commit comments

Comments
 (0)