-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replace tinycolor2 with colord on contrast checker. #34605
Replace tinycolor2 with colord on contrast checker. #34605
Conversation
Apart from the failing CI tests this change looks good to me. It tested well on local dev site and color contrast message displayed as expected. The unit tests for this component also passed locally for me. Happy to give it a ✅ if needed when the CI failures fixed. |
9d7f578
to
c9fa7cb
Compare
c9fa7cb
to
356dd8b
Compare
Size Change: +3.88 kB (0%) Total Size: 1.07 MB
ℹ️ View Unchanged
|
Thank you for the review @glendaviesnz there was a listing issue that was fixed. Now the remaining failure is an issue with react native tests that we also have in the trunk so I'm going for the merge. |
Part of #34286.
This PR replaces the tinycolor2 library with colord on the contrast checking component.
How has this been tested?
I added a paragraph block and tried some text and background color combinations. I verified the contrast warnings appear when expected.