Skip to content

chore: Update axe core version to 4.12.1 - #7771

Draft
Chirag Sharma (v-sharmachir) wants to merge 4 commits into
mainfrom
users/v-sharmachir/axe-core-4.12.1
Draft

chore: Update axe core version to 4.12.1#7771
Chirag Sharma (v-sharmachir) wants to merge 4 commits into
mainfrom
users/v-sharmachir/axe-core-4.12.1

Conversation

@v-sharmachir

Copy link
Copy Markdown
Contributor

Details

This pull request updates the axe-core dependency to version 4.12.1 across the codebase and makes several accessibility improvements to ensure compliance with the new version's stricter label-content-name-mismatch rule. It also updates component ARIA labels so that the visible text content is always a substring of the accessible name, as required by axe-core 4.12.1. Additionally, package versions are incremented where appropriate, and related test snapshots are updated to reflect these changes.

Accessibility improvements:

  • Updated ARIA label construction in nav-link-button.tsx, tab-stops-requirements-with-instances.tsx, and rules-with-instances.tsx so that the accessible name always starts with the visible text, appending additional information (such as outcome) in parentheses at the end. This ensures compliance with axe-core 4.12's label-content-name-mismatch rule. [1] [2] [3]
  • Added or adjusted spacing in several UI components to ensure the visible text matches the accessible name, including overview-left-nav-link.tsx, test-view-left-nav-link.tsx, tab-stops-minimal-requirement-header.tsx, and minimal-rule-header.tsx. [1] [2] [3] [4]

Dependency and package updates:

  • Upgraded axe-core to version 4.12.1 in the root package.json, packages/report/package.json, and packages/ui/package.json. [1] [2] [3]
  • Bumped package versions for accessibility-insights-report and accessibility-insights-ui. [1] [2]

Test and snapshot updates:

Motivation

Updating axe-core version from 4.11.3 to 4.12.1

Context

Pull request checklist

  • Addresses an existing issue: #0000
  • Ran yarn fastpass
  • Added/updated relevant unit test(s) (and ran yarn test)
  • Verified code coverage for the changes made. Check coverage report at: <rootDir>/test-results/unit/coverage
  • PR title AND final merge commit title both start with a semantic tag (fix:, chore:, feat(feature-name):, refactor:). See CONTRIBUTING.md.
  • (UI changes only) Added screenshots/GIFs to description above
  • (UI changes only) Verified usability with NVDA/JAWS

@v-sharmachir
Chirag Sharma (v-sharmachir) marked this pull request as ready for review June 16, 2026 13:37
@v-sharmachir
Chirag Sharma (v-sharmachir) requested a review from a team as a code owner June 16, 2026 13:37
@v-jitendjain
v-jitendjain marked this pull request as draft June 25, 2026 04:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant