From 210d193df7686b4a17eadf5e98e72a188bd6bea9 Mon Sep 17 00:00:00 2001 From: Giuliano Crivelli Date: Mon, 30 Oct 2023 16:53:27 -0400 Subject: [PATCH] feat: improving example of query/byrole #current --- docs/queries/byrole.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/queries/byrole.mdx b/docs/queries/byrole.mdx index c40ff6469..38bc83b08 100644 --- a/docs/queries/byrole.mdx +++ b/docs/queries/byrole.mdx @@ -181,13 +181,13 @@ For example in ```html ``` -you can get the "👍" link by calling `getByRole('link', { current: true })` and +you can get the "👍" link by calling `getByRole('link', { current: 'page' })` and the "👎" by calling `getByRole('link', { current: false })`. To learn more about the current state see [ARIA `aria-current`](https://www.w3.org/TR/wai-aria-1.2/#aria-current).