At the last #WordPress meetup @wp0711, @bovelett gave a presentation about #accessibility and we took the opportunity to test our websites.

Surprisingly, we had some contrast errors in our buttons despite using a #SCSS function to automatically calculate the correct contrast.

Turns out, most contrast calculation functions for SCSS are incorrect according to the WCAG 2 specifications.

So I found a smooth solution for that:
https://epiph.yt/en/blog/2023/fix-your-scss-color-contrast-function/

Fix your SCSS color contrast function | Epiphyt

When it comes to accessibility, the most common errors are contrast errors. And with a auto-contrast function in SCSS they seem to be fixed easily.

Epiphyt