Skip to content

Commit 08a49f9

Browse files
committed
docs: add aria-query doc link to ByRole query (#280)
* docs: add aria-query doc link to ByRole query * docs: reference aria in uppercase
1 parent 0f8b438 commit 08a49f9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

docs/dom-testing-library/api-queries.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -543,7 +543,10 @@ Queries for elements with the given role (and it also accepts a
543543
`<button />` has the `button` role without explicitly setting the `role`
544544
attribute. The
545545
[W3C HTML recommendation](https://www.w3.org/TR/html5/index.html#contents) lists
546-
all HTML elements with their default aria roles.
546+
all HTML elements with their default ARIA roles. Additionally, as DOM Testing
547+
Library uses `aria-query` under the hood to find those elements by their default
548+
ARIA roles, you can find in their docs
549+
[which HTML Elements with inherent roles are mapped to each role](https://github.com/A11yance/aria-query#elements-to-roles).
547550

548551
If you set `hidden` to `true` elements that are normally excluded from the
549552
accessibility tree are considered for the query as well. The default behavior

0 commit comments

Comments
 (0)