-
-
Notifications
You must be signed in to change notification settings - Fork 536
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
💅 noAriaHiddenOnFocusable
doesn't handle a bracketed number for tabIndex
#3689
Comments
@ematipico, I'm happy to fix this up if I could bother you for pointers. First time stepping into the codebase so have that lovely "I'm completely lost" feeling. 🫠 I've added a line of
I've never worked with AST's but It's suspicious to me that the |
Thank you! I will assign the issue to you then, feel free to use this issue to ask all your questions. The log may belong to another use case. For testing and debugging, we usually recommend another approach. If you want to inspect the AST of some source code, we usually recommend:
I believe the issue is lurking here, but I haven't looked at the code for a while: biome/crates/biome_js_analyze/src/lint/a11y/no_aria_hidden_on_focusable.rs Lines 79 to 86 in 14c7d97
|
Beautiful, that was the block I was logging from. 😄 Will do some more investigating with this refined debugging loop. |
Closed by #3708 |
Environment information
Rule name
noAriaHiddenOnFocusable
Playground link
https://biomejs.dev/playground/?code=YwBvAG4AcwB0ACAAVABoAGkAbgBnACAAPQAgACgAKQAgAD0APgAgAHsACgAgACAAcgBlAHQAdQByAG4AIAAoAAoAIAAgACAAIAA8AD4ACgAgACAAIAAgACAAIAA8AGkAIABhAHIAaQBhAC0AaABpAGQAZABlAG4APQAiAHQAcgB1AGUAIgAgAHQAYQBiAEkAbgBkAGUAeAA9AHsALQAxAH0AIAAvAD4ACgAgACAAIAAgACAAIAA8AGkAIABhAHIAaQBhAC0AaABpAGQAZABlAG4APQAiAHQAcgB1AGUAIgAgAHQAYQBiAEkAbgBkAGUAeAA9ACIALQAxACIAIAAvAD4ACgAgACAAIAAgADwALwA%2BAAoAIAAgACkACgB9AAoACgAKAA%3D%3D
Expected result
I'd expect both of the lines of JSX to pass since their rendered output are identical.
Extra bit of context, I tried to use the string variant as documented. This produces a TypeScript error, so I either have to ignore a TypeScript diagnostic or a Biome diagnostic.

Code of Conduct
The text was updated successfully, but these errors were encountered: