Skip to content

feat(linter): add dangerous suggestion for jsx-a11y/tabindex-no-positive #12963

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

Conversation

Sysix
Copy link
Member

@Sysix Sysix commented Aug 10, 2025

There should be 3 different fixes, but I moved with the "safest" one:

Change tabindex to 0

Still be focusable with the keyboard

Changing tabindex to -1

Could work when the focus is only needed with the JS API element.focus()

Removing tabindex

This could break applications which have custom aria roles and need the tabindex to work correctly.

@github-actions github-actions bot added A-linter Area - Linter C-enhancement Category - New feature or request labels Aug 10, 2025
Copy link
Member Author

Sysix commented Aug 10, 2025


How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • 0-merge - adds this PR to the back of the merge queue
  • hotfix - for urgent hot fixes, skip the queue and merge this PR next

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.

@Sysix Sysix marked this pull request as ready for review August 10, 2025 13:28
@Sysix Sysix requested a review from camc314 as a code owner August 10, 2025 13:28
Copy link

codspeed-hq bot commented Aug 10, 2025

CodSpeed Instrumentation Performance Report

Merging #12963 will not alter performance

Comparing 08-10-feat_linter_add_dangerous_suggestion_for_jsx-a11y_tabindex-no-positive_ (4ce252c) with main (6fe0bb5)1

Summary

✅ 34 untouched benchmarks

Footnotes

  1. No successful run was found on main (4ce252c) during the generation of this report, so 6fe0bb5 was used instead as the comparison base. There might be some changes unrelated to this pull request in this report.

@camc314 camc314 self-assigned this Aug 11, 2025
@camc314 camc314 added the 0-merge Merge with Graphite Merge Queue label Aug 12, 2025
Copy link
Contributor

camc314 commented Aug 12, 2025

Merge activity

…tive` (#12963)

There should be 3 different fixes, but I moved with the "safest" one:

### Change tabindex to 0
Still be focusable with the keyboard
### Changing tabindex to -1
Could work when the focus is only needed with the JS API `element.focus()`
### Removing tabindex
This could break applications which have custom aria roles and need the tabindex to work correctly.
@graphite-app graphite-app bot force-pushed the 08-10-feat_linter_add_dangerous_suggestion_for_jsx-a11y_tabindex-no-positive_ branch from fbc101c to 4ce252c Compare August 12, 2025 13:31
@graphite-app graphite-app bot merged commit 4ce252c into main Aug 12, 2025
29 checks passed
@graphite-app graphite-app bot deleted the 08-10-feat_linter_add_dangerous_suggestion_for_jsx-a11y_tabindex-no-positive_ branch August 12, 2025 13:35
@graphite-app graphite-app bot removed the 0-merge Merge with Graphite Merge Queue label Aug 12, 2025
taearls pushed a commit to taearls/oxc that referenced this pull request Aug 12, 2025
…tive` (oxc-project#12963)

There should be 3 different fixes, but I moved with the "safest" one:

### Change tabindex to 0
Still be focusable with the keyboard
### Changing tabindex to -1
Could work when the focus is only needed with the JS API `element.focus()`
### Removing tabindex
This could break applications which have custom aria roles and need the tabindex to work correctly.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-linter Area - Linter C-enhancement Category - New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants