Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3489458
D3701.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
782 B
Referenced Files
None
Subscribers
None
D3701.diff
View Options
diff --git a/web/modals/threads/color-selector-button.react.js b/web/modals/threads/color-selector-button.react.js
--- a/web/modals/threads/color-selector-button.react.js
+++ b/web/modals/threads/color-selector-button.react.js
@@ -2,6 +2,7 @@
import classNames from 'classnames';
import * as React from 'react';
+import tinycolor from 'tinycolor2';
import css from './color-selector-button.css';
@@ -13,7 +14,7 @@
function ColorSelectorButton(props: ColorSelectorButtonProps): React.Node {
const { color, currentColor, onColorSelection } = props;
- const active = color.toLowerCase() === currentColor.toLowerCase();
+ const active = tinycolor.equals(color, currentColor);
const containerClassName = classNames(css.container, {
[css.active]: active,
});
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Dec 19, 12:43 PM (21 h, 39 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2677344
Default Alt Text
D3701.diff (782 B)
Attached To
Mode
D3701: [web] Use `tinycolor.equals(a, b)` in `ColorSelectorButton`
Attached
Detach File
Event Timeline
Log In to Comment