+
Skip to content

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
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
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

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载