3

Fixing contrast issues, on your own site and elsewhere

 2 years ago
source link: https://kilianvalkhof.com/2021/accessibility/fixing-contrast-issues-on-your-own-site-and-elsewhere/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Fixing contrast issues, on your own site and elsewhere

Kilian Valkhof

Building tools that make developers awesome.

Search term

Fixing contrast issues, on your own site and elsewhere

Accessibility, 8 June 2021, 3 minute read

Insufficient text contrast is the most common accessibility issue on websites today. According to the WebAIM Million report for 2021, 86.4% of home pages world wide have low contrast text. What’s worse, this number has been increasing the past three years.

In Polypane, I’ve made it really easy to fix these color contrast issues, with an algorithm that finds contrast issues and automatically suggests the nearest color with enough contrast. That’s really helpful for all the (awesome, amazing and good looking) people building sites with Polypane, but I realized I could use the same code that powers the algorithm and just, well, fix all the contrast issues on any site you visit.

I built a browser extension

It’s called “fix contrast” and it’s available, for free, for Chrome, Firefox, Edge, Brave, Vivalvi and hopefully soon for Opera and Safari as well.

It does exactly what you expect it to do: it fixes contrast issues on sites you visit, automatically. The same way the suggested colors work in Polypane, except now it also applies them.

It does this while preserving the design of the website. All it does it bump the contrast for the elements that need it, leaving the rest alone.

Here’s what the plugin looks like:

The Fix Contrast settings

You can pick between “Medium” (corresponds to WCAG AA) and “High” (WCAG AAA) settings, or even pick your own preferences if those aren’t enough.

The extension will do the rest: calculate color contrast depending on color, opacity, background color and font size, and updates the colors of any elements that need it.

Lastly, it can also change the background color if you want it to, for example when we can’t increast or decrease the text color any further (it’s already fully white or fully black), but that’s optional.

Download for your browser

You can find download links and more information on FixA11y.com.

With 9 our of 10 websites having color contrast issues, this will make the web a more accessible place by fixing an issue for users directly, without having to wait on site authors to resolve their issues. I hope you’ll want to use it, and share it with other people for which it would be useful.

As it stands, the extension is available in English and Dutch, and I would love help getting it translated into other languages. If that’s something you want to help it, please let me know!

I also announced the Fix Contrast extension over at The A11y Project.

Try out Polypane

With Polypane, I want to make the web a more accessible place. I believe I can make that happen with tooling that doesn’t just tell people what’s wrong, but also tells them how to fix it.

If you want to read about the accessibility tooling in Polypane, read the evergreen article Find and fix accessibility issues with Polypane.

This philosophy influences all the choices I make in the application, and the result is that people are coached to making better websites at the point where they’re at, without needing to stop working to learn elsewhere.

If you want to make better websites with a tool that helps you improve your web development workflow and the quality of your websites, start a Polypane trial!

Hi, I'm Kilian. I make Polypane, the browser for responsive web development and design. If you're reading this site, that's probably interesting to you. Try it out!

Related Posts

New online tools: CSS specificity calculator and color contrast checker
30 March 2020, 3 minute read

My goal with Polypane is improving the workflow for developers and designers. The main focus is of course developing an excellent browser for developers and designers, but I’m also developing online tools that help out during development. Two of them online now are a CSS specificity calculator, and a color contrast checker. Both of them […]

Prefers-contrast: forced is a mistake
8 February 2021, 7 minute read

CSS Media Queries Level 5 is coming and though it’s still heavily in progress, there is a particular new option that feels like a mistake in the making to me: prefers-contrast: forced. I’ll explain why I feel that way in this article.

For many, accessibility is an unknown unknown
4 May 2020, 4 minute read

An unknown unknown is something you don’t know you don’t know. When you’re just starting out with web development there are many unknown unknowns. You don’t know enough about what’s possible to know what the right way to do things is. Accessibility is one of them.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK