Skip to content

Commit 1d2472f

Browse files
committed
Updates dialog styles to closer match VS Code
1 parent b49e8dd commit 1d2472f

File tree

1 file changed

+13
-8
lines changed
  • src/webviews/apps/shared/components/overlays

1 file changed

+13
-8
lines changed

src/webviews/apps/shared/components/overlays/dialog.ts

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ import { css, html, LitElement } from 'lit';
33
import { customElement, property, query } from 'lit/decorators.js';
44
import { focusableBaseStyles } from '../styles/lit/a11y.css';
55

6+
// #0000004d - light
7+
68
@customElement('gl-dialog')
79
export class GlDialog extends LitElement {
810
static override styles = [
@@ -12,18 +14,21 @@ export class GlDialog extends LitElement {
1214
display: contents;
1315
}
1416
15-
::backdrop {
16-
backdrop-filter: blur(4px);
17-
-webkit-backdrop-filter: blur(4px);
17+
dialog::backdrop {
18+
background-color: #0000004d;
19+
backdrop-filter: blur(0.4rem);
1820
}
1921
2022
dialog {
21-
padding: 2.4rem;
22-
background: var(--vscode-editor-background);
23-
border: 1px solid var(--vscode-widget-border);
23+
padding: 2rem;
24+
background: var(--vscode-editorWidget-background);
25+
border: 0.1rem solid var(--vscode-widget-border);
2426
border-radius: 0.3rem;
25-
color: var(--vscode-foreground);
26-
box-shadow: 0 0.4rem 0.4rem 0 var(--gl-tooltip-shadow);
27+
color: var(--vscode-editorWidget-foreground);
28+
box-shadow: 0 0 0.8rem 0 var(--vscode-widget-shadow);
29+
width: min-content;
30+
min-width: 40rem;
31+
max-width: 50rem;
2732
}
2833
`,
2934
];

0 commit comments

Comments
 (0)