Skip to content

Commit 3abf776

Browse files
ktranDevtools-frontend LUCI CQ
authored andcommitted
Reduce tooltip/popover paddings and adjust border radius
Fixed: 408140891 Change-Id: Ifcf600bbb6b40dee4dc75da7f83fd7ab48b2b1d6 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6429844 Auto-Submit: Kim-Anh Tran <kimanh@chromium.org> Reviewed-by: Kateryna Prokopenko <kprokopenko@chromium.org> Commit-Queue: Kim-Anh Tran <kimanh@chromium.org>
1 parent e4c5ad5 commit 3abf776

File tree

4 files changed

+9
-5
lines changed

4 files changed

+9
-5
lines changed

front_end/panels/sources/CSSPlugin.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,6 @@ const theme = CodeMirror.EditorView.baseTheme({
493493
'.cm-tooltip.cm-tooltip-swatchEdit': {
494494
'box-shadow': 'var(--sys-elevation-level2)',
495495
'background-color': 'var(--sys-color-base-container-elevated)',
496-
'border-radius': 'var(--sys-shape-corner-small)',
497-
padding: 'var(--sys-size-6) var(--sys-size-8)',
496+
'border-radius': 'var(--sys-shape-corner-extra-small)',
498497
},
499498
});

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,5 @@
1212
line-height: 11px;
1313
box-shadow: var(--sys-elevation-level2);
1414
background-color: var(--sys-color-base-container-elevated);
15-
border-radius: var(--sys-shape-corner-small);
16-
padding: var(--sys-size-6) var(--sys-size-8);
15+
border-radius: var(--sys-shape-corner-extra-small);
1716
}

front_end/ui/legacy/components/object_ui/objectPopover.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@
44
* found in the LICENSE file.
55
*/
66

7+
.widget:has(.object-popover-tree) {
8+
padding: 0;
9+
border-radius: var(--sys-shape-corner-extra-small);
10+
}
11+
712
.object-popover-content {
813
display: flex;
914
position: relative;
@@ -19,6 +24,7 @@
1924
font-weight: bold;
2025
padding-left: 18px;
2126
padding-bottom: 2px;
27+
padding-top: var(--sys-size-3);
2228
flex-shrink: 0;
2329
}
2430

front_end/ui/legacy/popover.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
color: var(--sys-color-on-surface);
1212
background-color: var(--sys-color-base-container-elevated);
1313
border-radius: var(--sys-shape-corner-small);
14-
padding: var(--sys-size-6) var(--sys-size-8);
14+
padding: var(--sys-size-4);
1515
}
1616

1717
.squiggles-content {

0 commit comments

Comments
 (0)