Skip to content

Commit 58f7819

Browse files
committed
No need to strip alpha
1 parent 544ab66 commit 58f7819

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/components/widgets/ColorPicker.js

+1-6
Original file line numberDiff line numberDiff line change
@@ -74,12 +74,7 @@ class ColorPicker extends Component {
7474
// expect from user data.
7575
const selectedColor = tinycolor(this.props.selectedColor);
7676
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})`;
77+
const rgbString = selectedColor.toRgbString();
8378

8479
// We need inline style here to assign the background color
8580
// dynamically.

0 commit comments

Comments
 (0)