Page MenuHomePhabricator

[native] [web] Use `tinycolor` when comparing colors represented as strings
ClosedPublic

Authored by abosh on Jun 9 2022, 2:29 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Nov 9, 11:41 AM
Unknown Object (File)
Sat, Nov 9, 11:41 AM
Unknown Object (File)
Fri, Nov 8, 12:47 PM
Unknown Object (File)
Fri, Nov 8, 8:08 AM
Unknown Object (File)
Thu, Nov 7, 10:51 PM
Unknown Object (File)
Thu, Nov 7, 10:10 PM
Unknown Object (File)
Tue, Nov 5, 2:01 AM
Unknown Object (File)
Oct 24 2024, 8:47 AM

Details

Summary

Recently have run into some bugs with checking color equality between two hex strings (using the basic === operator). Changed this equality (or inequality) check to use tinycolor.equals() instead throughout the codebase.

Test Plan

Tested LoadingIndicator and ThreadSettings on web and ensured that they looked as expected after the change.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Harbormaster returned this revision to the author for changes because remote builds failed.Jun 9 2022, 2:30 PM
Harbormaster failed remote builds in B9704: Diff 13445!
abosh edited the test plan for this revision. (Show Details)
abosh added 1 blocking reviewer(s): atul.
web/calendar/entry.react.js
198 ↗(On Diff #13445)

This change is just a minor style fix that corrects the prior string concatenation to use ${} placeholder syntax (used throughout the codebase).

This revision is now accepted and ready to land.Jun 14 2022, 12:29 PM