Skip to content

fix(a11y): fixed background contrast#7829

Open
pranjalisr wants to merge 10 commits intowebpack:mainfrom
pranjalisr:fix-audit8
Open

fix(a11y): fixed background contrast#7829
pranjalisr wants to merge 10 commits intowebpack:mainfrom
pranjalisr:fix-audit8

Conversation

@pranjalisr
Copy link
Contributor

Summary
Fixed Background and foreground colors do not have sufficient contrast ratio under Contrast issue in Lighthouse
Screenshot 2026-02-19 at 15 45 29

What kind of change does this PR introduce?
Code changes

Did you add tests for your changes?
No

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?
N/A

@vercel
Copy link

vercel bot commented Feb 19, 2026

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 1, 2026 7:37am

Request Review

@pranjalisr
Copy link
Contributor Author

@evenstensberg I have raised PRs to resolve all the issues of Lighthouse along with screenshots of them working fine. Some might still be showing It could be server caching but I have resolved all of them separately.
Please review.

}

a {
text-decoration: underline;
Copy link
Member

Choose a reason for hiding this comment

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

do we need to always show underline to pass the audit rule?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

not always required. I added to make sure it passes audit. But I can move it to markdown only or use underline-on-hover if that's good with current design.
Does that sounds good?

@pranjalisr
Copy link
Contributor Author

@evenstensberg I made changes as I mentioned above but that has decreased the accessibility score to 88. Is there any other way to handle this?

@evenstensberg
Copy link
Member

You will need to do some research, underline on all links is not pretty.

@pranjalisr
Copy link
Contributor Author

@evenstensberg pls review, I have made some code changes to fix accessibility audit. Ran locally and now accessibility score is 96

Screenshot 2026-03-01 at 12 54 56

@evenstensberg
Copy link
Member

I dont like the text underline when they've not been visited. You need to do some research on how to have a11y pass without text-decoration.

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.

2 participants