Skip to content

fix: improve accessibility across Navigation, Footer, and PageNotFound#7963

Merged
alexander-akait merged 1 commit into
webpack:mainfrom
shivxmsharma:fix/accessibility-improvements
Mar 10, 2026
Merged

fix: improve accessibility across Navigation, Footer, and PageNotFound#7963
alexander-akait merged 1 commit into
webpack:mainfrom
shivxmsharma:fix/accessibility-improvements

Conversation

@shivxmsharma

Copy link
Copy Markdown
Contributor

Summary

This PR improves accessibility across three components: Navigation, Footer, and PageNotFound.

Changes made:

  • Added aria-label="Main navigation" to the <nav> element in Navigation.jsx so screen readers can identify the primary navigation landmark
  • Added aria-label attributes to the three <section> elements in Footer.jsx ("Quick links", "Home", "Resources and links") for screen reader identification
  • Added target="_blank" and rel="noopener noreferrer" to all external <a> links in Footer.jsx for consistency (the logo link already had these attributes, but the text links did not)
  • Replaced hardcoded color #1a6bac with SCSS variable getColor(denim) in PageNotFound.scss and added hover state styling

These changes address accessibility concerns raised in #7594.

What kind of change does this PR introduce?

fix: accessibility improvements (aria-labels, consistent link attributes, SCSS variable usage)

Did you add tests for your changes?

No tests added — these are accessibility attribute additions and CSS changes that don't affect component logic. Existing tests and snapshots remain passing.

Does this PR introduce a breaking change?

No.

If relevant, what needs to be documented once your changes are merged or what have you already documented?

No documentation changes needed.

Use of AI

AI (Gemini CLI) was used to help identify accessibility issues in the codebase by scanning component files for missing aria-label attributes, inconsistent link attributes, and hardcoded color values. All code changes were written and reviewed manually.

@vercel

vercel Bot commented Mar 9, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
webpack-js-org Ready Ready Preview, Comment Mar 10, 2026 0:37am

Request Review

@linux-foundation-easycla

linux-foundation-easycla Bot commented Mar 9, 2026

Copy link
Copy Markdown

CLA Signed

Comment thread src/components/Footer/Footer.jsx

@avivkeller avivkeller left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Please remove the unrelated file additions

@alexander-akait alexander-akait left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Please fix your sass

@shivxmsharma shivxmsharma force-pushed the fix/accessibility-improvements branch from 38d11f4 to c6bd5e6 Compare March 10, 2026 12:31
Comment thread src/components/PageNotFound/PageNotFound.scss Outdated
Comment thread src/components/PageNotFound/PageNotFound.scss
@alexander-akait alexander-akait merged commit f837a86 into webpack:main Mar 10, 2026
9 checks passed
@shivxmsharma shivxmsharma deleted the fix/accessibility-improvements branch March 10, 2026 15:17
pranjalisr pushed a commit to pranjalisr/webpack.js.org that referenced this pull request Mar 12, 2026
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.

3 participants