Add z index to dialog (#6145)

This commit is contained in:
Bram Kragten 2020-06-13 06:00:37 +02:00 committed by GitHub
parent 65b16c763e
commit ffff4dc03d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 9 deletions

View File

@ -25,6 +25,9 @@ export class HaDialog extends MwcDialog {
return [ return [
style, style,
css` css`
.mdc-dialog {
z-index: var(--dialog-z-index, 7);
}
.mdc-dialog__actions { .mdc-dialog__actions {
justify-content: var(--justify-action-buttons, flex-end); justify-content: var(--justify-action-buttons, flex-end);
} }

View File

@ -132,15 +132,6 @@ class DialogBox extends LitElement {
pointer-events: initial !important; pointer-events: initial !important;
cursor: initial !important; cursor: initial !important;
} }
ha-paper-dialog {
min-width: 400px;
max-width: 500px;
}
@media (max-width: 400px) {
ha-paper-dialog {
min-width: initial;
}
}
a { a {
color: var(--primary-color); color: var(--primary-color);
} }
@ -156,6 +147,10 @@ class DialogBox extends LitElement {
.secondary { .secondary {
color: var(--secondary-text-color); color: var(--secondary-text-color);
} }
ha-dialog {
/* Place above other dialogs */
--dialog-z-index: 104;
}
`, `,
]; ];
} }