We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a54a968 commit 6aa5dc5Copy full SHA for 6aa5dc5
docs/queries/byrole.mdx
@@ -181,13 +181,13 @@ For example in
181
```html
182
<body>
183
<nav>
184
- <a href="current/page" aria-current="true">👍</a>
+ <a href="current/page" aria-current="page">👍</a>
185
<a href="another/page">👎</a>
186
</nav>
187
</body>
188
```
189
190
-you can get the "👍" link by calling `getByRole('link', { current: true })` and
+you can get the "👍" link by calling `getByRole('link', { current: 'page' })` and
191
the "👎" by calling `getByRole('link', { current: false })`. To learn more about
192
the current state see
193
[ARIA `aria-current`](https://www.w3.org/TR/wai-aria-1.2/#aria-current).
0 commit comments