Skip to content
Commit 15c72559 authored by Akseli Lahtinen's avatar Akseli Lahtinen
Browse files

Use contrastRatio 4.5 for accentForeground

Previously the accent color could be ridiculously light (almost full on white) before the text would change color to black.

This uses the accessibility contrast formula to calculate the contrast ratio and sets it according to WCAG standard.

I added the sources of these values to comments.
parent 44300732
Pipeline #561257 failed with stage
in 1 minute and 36 seconds
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment