Et2Dialog: Fix missing button alignment

This commit is contained in:
nathan 2023-02-22 14:51:21 -07:00
parent cd22b9aad6
commit 4311eebdc9

View File

@ -233,13 +233,25 @@ export class Et2Dialog extends Et2Widget(SlotMixin(SlDialog))
} }
/* Non-modal dialogs don't have an overlay */ /* Non-modal dialogs don't have an overlay */
:host(:not([isModal])) .dialog, :host(:not([isModal])) .dialog__overlay { :host(:not([isModal])) .dialog, :host(:not([isModal])) .dialog__overlay {
pointer-events: none; pointer-events: none;
background: transparent; background: transparent;
} }
:host(:not([isModal])) .dialog__panel { :host(:not([isModal])) .dialog__panel {
pointer-events: auto; pointer-events: auto;
} }
::slotted([align="left"]) {
margin-right: auto;
order: -1;
}
::slotted([align="right"]) {
margin-left: auto;
order: 1;
}
` `
]; ];
} }