We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 544ab66 commit 58f7819Copy full SHA for 58f7819
src/components/widgets/ColorPicker.js
@@ -74,12 +74,7 @@ class ColorPicker extends Component {
74
// expect from user data.
75
const selectedColor = tinycolor(this.props.selectedColor);
76
const colorText = selectedColor.toHexString();
77
-
78
- // Convert rgba to rgb if necessary
79
- const rgbString =
80
- selectedColor._a !== 0
81
- ? selectedColor.toRgbString()
82
- : `rgb(${selectedColor._r},${selectedColor._g},${selectedColor._b})`;
+ const rgbString = selectedColor.toRgbString();
83
84
// We need inline style here to assign the background color
85
// dynamically.
0 commit comments