Skip to content

Commit 199588f

Browse files
Kateryna ProkopenkoDevtools-frontend LUCI CQ
Kateryna Prokopenko
authored and
Devtools-frontend LUCI CQ
committed
Fix paddings and corner radii for flex, grid and shadow editors
Bug: 409771454 Change-Id: I19e9840d78ee245c1a15b5d8e65485eb227d4aa1 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6459230 Reviewed-by: Kim-Anh Tran <[email protected]> Commit-Queue: Kateryna Prokopenko <[email protected]> Auto-Submit: Kateryna Prokopenko <[email protected]> Commit-Queue: Kim-Anh Tran <[email protected]>
1 parent 74161e2 commit 199588f

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

front_end/panels/elements/ColorSwatchPopoverIcon.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -342,6 +342,7 @@ export class ShadowSwatchPopoverHelper extends Common.ObjectWrapper.ObjectWrappe
342342
}
343343

344344
this.cssShadowEditor = new InlineEditor.CSSShadowEditor.CSSShadowEditor();
345+
this.cssShadowEditor.element.classList.toggle('with-padding', true);
345346
this.cssShadowEditor.setModel(this.shadowSwatch.model());
346347
this.cssShadowEditor.addEventListener(InlineEditor.CSSShadowEditor.Events.SHADOW_CHANGED, this.boundShadowChanged);
347348
this.swatchPopoverHelper.show(this.cssShadowEditor, this.iconElement, this.onPopoverHidden.bind(this));

front_end/panels/elements/StyleEditorWidget.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ export class StyleEditorWidget extends UI.Widget.VBox {
126126
event.stopPropagation();
127127
const popoverHelper = pane.swatchPopoverHelper();
128128
const widget = StyleEditorWidget.instance();
129+
widget.element.classList.toggle('with-padding', true);
129130
widget.setEditor(editorClass);
130131
widget.bindContext(pane, section);
131132
widget.setTriggerKey(triggerKey);

front_end/ui/legacy/components/inline_editor/swatchPopover.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,8 @@
1414
background-color: var(--sys-color-base-container-elevated);
1515
border-radius: var(--sys-shape-corner-extra-small);
1616
}
17+
18+
.with-padding {
19+
padding: var(--sys-size-4);
20+
border-radius: var(--sys-shape-corner-small);
21+
}

0 commit comments

Comments
 (0)