Fix the contrast-related accessibility violations#342
Fix the contrast-related accessibility violations#342huangkevin-apr wants to merge 1 commit intogolang:masterfrom
Conversation
|
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
|
This PR (HEAD: 70f5638) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/website/+/733020. Important tips:
|
|
Message from Gopher Robot: Patch Set 1: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/733020. |
|
Message from Gopher Robot: Patch Set 1: Congratulations on opening your first change. Thank you for your contribution! Next steps: Most changes in the Go project go through a few rounds of revision. This can be Please don’t reply on this GitHub thread. Visit golang.org/cl/733020. |
Issue Description
When running IBM Accessibility Checker (Version 4.0.8) on the homepage, several contrast-related accessibility violations were reported.
Specifically, 8 elements were flagged with the following violation:
When text and its background colors have less than a 4.5 to 1 contrast ratio it can be difficult for people with moderately low vision to read the text without contrast-enhancing technology.
Violation Screenshot

Violation Report

Refer to Understanding 1.4.3 Contrast (Minimum) for more information about this violation type.
Fix Description
The patch submitted in this PR was generated by A11YRepair, an automated Web Accessibility repair tool that I developed to address common accessibility violations in web applications.
The generated fixes were manually reviewed and validated before submission.
The reasoning process of A11YRepair to repair current accessibility violations:
Screenshot after applying patches

Verification