mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-12 20:06:33 +00:00
Add z index to dialog (#6145)
This commit is contained in:
parent
65b16c763e
commit
ffff4dc03d
@ -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);
|
||||||
}
|
}
|
||||||
|
@ -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;
|
||||||
|
}
|
||||||
`,
|
`,
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user