Open rmolinamir opened 9 months ago
Ended up simply disabling the aria-hidden-focus
rule with a selector specifically for those spans to avoid this false positive, but might be worth giving it a look still.
Thanks for all the amazing work :)
Dupliceras #1750
Bug report
The Toast component is causing an
a11y
issue:Current Behavior
The
Toast
component renders aVisuallyHidden
component with a truthyaria-hidden
but atabIndex
of0
. Please seepackages/react/toast/src/Toast.tsx
.Expected behavior
The
Toast
should render theVisuallyHidden
component withtabIndex
of-1
.Reproducible example
CodeSandbox Reproducible
Please navigate to the Storybook
Addons
tab and check thea11y
violation.Suggested solution
Not 100% sure, I was initially thinking of suggesting rendering the
VisuallyHidden
component with atabIndex
of-1
as mentioned above, but this seems to be managing focus and I'm unaware of potential side-effects resulting from this solution.Additional context
If
tabIndex=-1
is deemed to work then I can open a PR.Your environment
@radix-ui/react-toast
^1.1.5
18.2.0