Skip to content
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

fix: noAriaHiddenonFocusable when using a JSX expression #3708

Merged
merged 6 commits into from
Aug 26, 2024

Conversation

anthonyshew
Copy link
Contributor

@anthonyshew anthonyshew commented Aug 23, 2024

Summary

I ran into a bug with JSX expressions for this rule, as seen in #3689. In this PR, we're handling the various ways you can define this attribute with slightly more robustness.

Test Plan

I've added to the valid.jsx file for this rule to recreate the bug I ran into. It passes now!

@github-actions github-actions bot added A-Linter Area: linter L-JavaScript Language: JavaScript and super languages labels Aug 23, 2024
@anthonyshew anthonyshew changed the title shew/noAriaHiddenOnFocusable fix Fix noAriaHiddenonFocusable when using a JSX expression. Aug 23, 2024
dyc3
dyc3 previously requested changes Aug 23, 2024
crates/biome_js_analyze/src/lib.rs Outdated Show resolved Hide resolved
Copy link

codspeed-hq bot commented Aug 23, 2024

CodSpeed Performance Report

Merging #3708 will not alter performance

Comparing anthonyshew:shew/noAriaHiddenOnFocusable-fix (4a42a59) with main (f64769b)

Summary

✅ 101 untouched benchmarks

@anthonyshew anthonyshew changed the title Fix noAriaHiddenonFocusable when using a JSX expression. Fix: noAriaHiddenonFocusable when using a JSX expression. Aug 24, 2024
@anthonyshew anthonyshew changed the title Fix: noAriaHiddenonFocusable when using a JSX expression. Fix: noAriaHiddenonFocusable when using a JSX expression Aug 24, 2024
@anthonyshew anthonyshew changed the title Fix: noAriaHiddenonFocusable when using a JSX expression fix: noAriaHiddenonFocusable when using a JSX expression Aug 24, 2024
@ematipico ematipico requested a review from dyc3 August 24, 2024 22:17
Copy link
Member

@ematipico ematipico left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you very much for the bug fix. Everything looks good. I would complete the PR with:

@github-actions github-actions bot added A-Parser Area: parser A-Changelog Area: changelog labels Aug 26, 2024
@anthonyshew anthonyshew force-pushed the shew/noAriaHiddenOnFocusable-fix branch from e6013fc to 4a42a59 Compare August 26, 2024 15:54
@ematipico ematipico dismissed dyc3’s stale review August 26, 2024 17:00

Comments addressed

@ematipico ematipico merged commit b26cc29 into biomejs:main Aug 26, 2024
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Changelog Area: changelog A-Linter Area: linter A-Parser Area: parser L-JavaScript Language: JavaScript and super languages
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants