Skip to content

Improve template navigation focus contrast - #68998

Draft
Youssef1313 with Copilot wants to merge 2 commits into
mainfrom
copilot/a11y-fix-focus-indicator-contrast
Draft

Improve template navigation focus contrast#68998
Youssef1313 with Copilot wants to merge 2 commits into
mainfrom
copilot/a11y-fix-focus-indicator-contrast

Conversation

Copilot AI commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

Improve template navigation focus contrast

  • You've read the Contributor Guide and Code of Conduct.
  • You've included unit or integration tests for your change, where applicable.
  • You've included inline docs for your change, where applicable.
  • There's an open issue for the PR that you are making. If you'd like to propose a new feature or change, please open an issue to discuss the change or find an existing issue.

Improve focus contrast for generated navigation links

Description

Generated Web and Blazor navigation links inherit Bootstrap’s translucent focus ring, producing only 1.285:1 contrast. Keyboard users with low vision may not be able to identify the focused link.

  • Focus styling

    • Apply the existing opaque #258cfb focus ring to every .nav-link.
    • Cover MVC, Razor Pages, F# MVC, Blazor Web, and Blazor WebAssembly templates.
  • Regression coverage

    • Verify that focused Blazor navigation links resolve to the opaque ring color.
.nav-link:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

Co-authored-by: Youssef1313 <31348972+Youssef1313@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix focus indicator color contrast on Home and Privacy links Improve template navigation focus contrast Sep 2, 2026
Copilot AI requested a review from Youssef1313 September 2, 2026 15:38
@Youssef1313 Youssef1313 added the area-commandlinetools Includes: Command line tools, dotnet-dev-certs, dotnet-user-jwts, and OpenAPI label Sep 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-commandlinetools Includes: Command line tools, dotnet-dev-certs, dotnet-user-jwts, and OpenAPI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Focus indicator has insufficient color contrast on "Home" and "Privacy" links.: A11y_.NET Core Cloud Platform (ASP.NET Core)_WebSample_NonTextContrast

2 participants