Skip to content

Commit 248d0fb

Browse files
Kateryna ProkopenkoDevtools-frontend LUCI CQ
authored andcommitted
[GM3Restyling] Update preloading warning dialog
Screenshot: https://imgur.com/a/l8L8MNP Bug: 325442935 Change-Id: I37af565fabd0511eeffa656c6cf85daac5d63d0c Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6243823 Commit-Queue: Benedikt Meurer <[email protected]> Reviewed-by: Benedikt Meurer <[email protected]> Auto-Submit: Kateryna Prokopenko <[email protected]>
1 parent 7951c23 commit 248d0fb

File tree

2 files changed

+6
-20
lines changed

2 files changed

+6
-20
lines changed

front_end/panels/application/preloading/components/PreloadingDisabledInfobar.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import type * as Protocol from '../../../../generated/protocol.js';
1010
import * as Buttons from '../../../../ui/components/buttons/buttons.js';
1111
import * as ChromeLink from '../../../../ui/components/chrome_link/chrome_link.js';
1212
import * as Dialogs from '../../../../ui/components/dialogs/dialogs.js';
13-
import * as IconButton from '../../../../ui/components/icon_button/icon_button.js';
1413
import * as LegacyWrapper from '../../../../ui/components/legacy_wrapper/legacy_wrapper.js';
1514
import * as RenderCoordinator from '../../../../ui/components/render_coordinator/render_coordinator.js';
1615
import * as UI from '../../../../ui/legacy/legacy.js';
@@ -179,10 +178,6 @@ export class PreloadingDisabledInfobar extends LegacyWrapper.LegacyWrapper.Wrapp
179178
const iconLink = UI.Fragment.html`
180179
<x-link class="icon-link devtools-link" tabindex="0" href="${LINK}"></x-link>
181180
` as UI.XLink.XLink;
182-
const iconLinkIcon = new IconButton.Icon.Icon();
183-
iconLinkIcon
184-
.data = {iconName: 'open-externally', color: 'var(--icon-default-hover)', width: '16px', height: '16px'};
185-
iconLink.append(iconLinkIcon);
186181

187182
return html`
188183
<div id='contents'>

front_end/panels/application/preloading/components/preloadingDisabledInfobar.css

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -11,35 +11,26 @@
1111
display: flex;
1212
}
1313

14-
#contents {
15-
margin-top: calc(-1 * var(--sys-size-6));
16-
padding: 0 var(--sys-size-8) var(--sys-size-2);
17-
}
18-
19-
#contents * {
20-
background: var(--color-background-elevation-dark-only);
21-
}
22-
2314
#contents .key {
2415
grid-column-start: span 2;
25-
padding: 12px 0;
2616
font-weight: bold;
27-
margin-bottom: -1.2em;
2817
}
2918

3019
#contents .value {
3120
grid-column-start: span 2;
32-
padding: 12px 0;
21+
margin-top: var(--sys-size-6);
3322
}
3423

3524
#footer {
25+
margin-top: var(--sys-size-6);
26+
margin-bottom: var(--sys-size-2);
3627
white-space: nowrap;
3728
overflow: hidden;
3829
text-overflow: ellipsis;
3930
grid-column-start: span 2;
4031
}
4132

42-
#footer .icon-link {
43-
vertical-align: sub;
44-
float: right;
33+
x-link { /* stylelint-disable-line selector-type-no-unknown */
34+
color: var(--sys-color-primary);
35+
text-decoration-line: underline;
4536
}

0 commit comments

Comments
 (0)