Open Barsnes opened 1 month ago
A separator might be focusable. You can learn more from here: https://www.w3.org/TR/wai-aria-1.1/#separator
Unfortunately the rule isn't able to determine whether it is focusable or not. Probably, it's best to suppress the rule.
I'm not sure there's a way to understand when an element is focusable
A separator might be focusable. You can learn more from here: https://www.w3.org/TR/wai-aria-1.1/#separator
Unfortunately the rule isn't able to determine whether it is focusable or not. Probably, it's best to suppress the rule.
I'm not sure there's a way to understand when an element is focusable
The best solution for the rule would be to know if an element is focusable, for sure.
However, since the element is by default not focusable, should an error be thrown here?
A developer would need to make their hr
focusable, which by default it is not
We would like to keep this rule, so we have suppressed it where it is currently throwing errors for hr
s with aria-hidden='true'
Environment information
Rule name
lint/a11y/noAriaHiddenOnFocusable
Playground link
https://biomejs.dev/playground/?code=PABoAHIAIABhAHIAaQBhAC0AaABpAGQAZABlAG4APQAnAHQAcgB1AGUAJwAgAC8APgA%3D
Expected result
The
hr
element is not focusable, so this error should not be thrown here.Code of Conduct