Skip to content

Commit 41f3877

Browse files
committed
fix: no color edit button over gradients
1 parent 80275ae commit 41f3877

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/extensions/default/QuickView/colorGradientProvider.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -292,8 +292,10 @@ define(function (require, exports, module) {
292292
<div id='quick-view-color-swatch' data-for-test='${previewCSS}' class='color-swatch'
293293
style='background: ${previewCSS}'>
294294
</div>
295-
<i class="fa fa-edit" style="color: ${previewCSS}; margin-top:5px;"></i>
296-
<span style="color: ${previewCSS}; margin-top:5px;">${Strings.EDIT}</span>
295+
<span style="${gradientMatch.match? "display: none;": ""}">
296+
<i class="fa fa-edit" style="color: ${previewCSS}; margin-top:5px;"></i>
297+
<span style="color: ${previewCSS}; margin-top:5px;">${Strings.EDIT}</span>
298+
</span>
297299
</div>`);
298300
preview.click(function () {
299301
if(gradientMatch.match) {

0 commit comments

Comments
 (0)