Skip to content

Commit cd29a45

Browse files
Kateryna ProkopenkoDevtools-frontend LUCI CQ
authored andcommitted
[GM3Restyling] Update Dialog and Shortcut Dialog styles
Remove unused styles as a drive-by Screenshot: https://imgur.com/a/EC1uLNX Bug: 325442935 Change-Id: I1ffc8339c761277e83a5c96002045bd6201e1665 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6243196 Auto-Submit: Kateryna Prokopenko <[email protected]> Reviewed-by: Benedikt Meurer <[email protected]> Commit-Queue: Benedikt Meurer <[email protected]>
1 parent 1ae1dc1 commit cd29a45

File tree

6 files changed

+8
-23
lines changed

6 files changed

+8
-23
lines changed

front_end/ui/components/dialogs/Dialog.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -631,6 +631,7 @@ export class Dialog extends HTMLElement {
631631
variant: Buttons.Button.Variant.TOOLBAR,
632632
iconName: 'cross',
633633
title: i18nString(UIStrings.close),
634+
size: Buttons.Button.Size.SMALL,
634635
} as Buttons.Button.ButtonData}
635636
jslog=${VisualLogging.close().track({click: true})}
636637
></devtools-button>

front_end/ui/components/dialogs/dialog.css

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,16 @@ dialog:focus-visible {
5959

6060
.dialog-header-text {
6161
font: var(--sys-typescale-body2-medium);
62+
padding-top: var(--sys-size-3);
63+
}
64+
65+
devtools-button {
66+
margin: 3px;
6267
}
6368
}
6469

6570
.dialog-content {
66-
padding: 0 0 var(--sys-size-7);
71+
padding: 0 var(--sys-size-8) var(--sys-size-7) var(--sys-size-8);
6772
overflow: hidden;
6873
}
6974

front_end/ui/components/dialogs/shortcutDialog.css

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -4,24 +4,12 @@
44
* found in the LICENSE file.
55
*/
66

7-
.keybinds-category-header {
8-
display: flex;
9-
justify-content: space-between;
10-
align-items: center;
11-
padding: 0 var(--sys-size-6) var(--sys-size-5) var(--sys-size-8);
12-
}
13-
14-
.keybinds-category-header-text {
15-
font-size: var(--sys-typescale-body3-size);
16-
font-weight: var(--ref-typeface-weight-medium);
17-
}
18-
197
.keybinds-list {
208
display: flex;
219
flex-direction: column;
2210
/* overwrite default`margin` and `padding` for the <ul> element */
2311
margin: 0;
24-
padding: 0 var(--sys-size-8);
12+
padding: 0;
2513
}
2614

2715
.keybinds-list-item {
@@ -46,15 +34,6 @@
4634
}
4735
}
4836

49-
.keybinds-list-text {
50-
font-size: var(--sys-typescale-body4-size);
51-
white-space: nowrap;
52-
text-overflow: ellipsis;
53-
overflow: hidden;
54-
user-select: none;
55-
color: var(--sys-color-on-surface);
56-
}
57-
5837
.keys-container {
5938
display: flex;
6039
gap: var(--sys-size-3);
-155 Bytes
Loading
-569 Bytes
Loading
-613 Bytes
Loading

0 commit comments

Comments
 (0)