Skip to content

Commit 499222f

Browse files
Merge pull request #4424 from Codeinwp/bugfix/pro/3022
Fixed styling options of the menu icon
2 parents e3ed1c9 + f3d83a3 commit 499222f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

assets/apps/components/src/Controls/ColorControl.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,11 @@ const ColorControl = ({
5252
};
5353

5454
const isGlobal = selectedColor && selectedColor.indexOf('var') > -1;
55+
const defaultGradient = 'linear-gradient(135deg,rgba(6,147,227,1) 0%,rgb(155,81,224) 100%)';
5556

5657
const handleClear = () => {
5758
onChange(defaultValue || '');
59+
setGradient(defaultValue || defaultGradient);
5860
toggle();
5961
};
6062

@@ -157,14 +159,14 @@ const ColorControl = ({
157159
<div
158160
className="current-color-gradient"
159161
style={{
160-
background: selectedColor,
162+
background: selectedColor || defaultGradient,
161163
height: '177px',
162164
border: '1px solid #eee',
163165
minWidth: '215px',
164166
}}
165167
/>
166168
<GradientPicker
167-
value={gradient}
169+
value={gradient || defaultGradient}
168170
gradients={[]}
169171
onChange={(currentGradient) => {
170172
setGradient(currentGradient);

0 commit comments

Comments
 (0)