Skip to content

Post-merge-review: Fix template-require-aria-activedescendant-tabindex: autofix for non-div tags#2697

Merged
NullVoxPopuli merged 1 commit intoember-cli:masterfrom
johanrd:day_fix/template-require-aria-activedescendant-tabindex
Apr 14, 2026
Merged

Post-merge-review: Fix template-require-aria-activedescendant-tabindex: autofix for non-div tags#2697
NullVoxPopuli merged 1 commit intoember-cli:masterfrom
johanrd:day_fix/template-require-aria-activedescendant-tabindex

Conversation

@johanrd
Copy link
Copy Markdown
Contributor

@johanrd johanrd commented Apr 13, 2026

Summary

  • Replaces hardcoded '<div'.length with computed 1 + node.tag.length
  • Previous code mis-positioned tabindex insertion on <a>, <button>, and other non-3-char tags

Test plan

  • <a aria-activedescendant="x"> autofixes to <a aria-activedescendant="x" tabindex="0">
  • <button aria-activedescendant="x" tabindex="-1"> autofixes to tabindex="0"

…n for non-div tags

Replaces hardcoded '<div'.length with computed offset based on the
actual tag name. Previous code mis-positioned the tabindex insertion
on <a>, <button>, and other non-3-char tags.
@johanrd johanrd marked this pull request as ready for review April 13, 2026 17:04
@johanrd johanrd force-pushed the day_fix/template-require-aria-activedescendant-tabindex branch from 29e6293 to 7165f51 Compare April 13, 2026 17:38
@johanrd johanrd changed the title Fix template-require-aria-activedescendant-tabindex: autofix for non-div tags Post-merge-review: Fix template-require-aria-activedescendant-tabindex: autofix for non-div tags Apr 13, 2026
@NullVoxPopuli NullVoxPopuli merged commit ad97334 into ember-cli:master Apr 14, 2026
20 checks passed
@github-actions github-actions bot mentioned this pull request Apr 14, 2026
@johanrd johanrd deleted the day_fix/template-require-aria-activedescendant-tabindex branch April 14, 2026 21:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants