Fix dialog conent color (#5251)

* Fix ha-dialog content color

* Fix
This commit is contained in:
Bram Kragten 2020-03-18 12:17:01 +01:00 committed by GitHub
parent 7fb1e699ae
commit 262b12eb93
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 3 deletions

View File

@ -57,8 +57,10 @@ export class DialogLovelaceDashboardDetail extends LitElement {
if (!this._params) {
return html``;
}
const urlInvalid = !/^[a-zA-Z0-9_-]+-[a-zA-Z0-9_-]+$/.test(this._urlPath);
const titleInvalid = !this._urlPath.trim();
const urlInvalid =
this._params.urlPath !== "lovelace" &&
!/^[a-zA-Z0-9_-]+-[a-zA-Z0-9_-]+$/.test(this._urlPath);
const titleInvalid = !this._title.trim();
return html`
<ha-dialog
open

View File

@ -204,8 +204,8 @@ export const haStyleDialog = css`
--mdc-dialog-min-width: 400px;
--mdc-dialog-max-width: 600px;
--mdc-dialog-heading-ink-color: var(--primary-text-color);
--mdc-dialog-content-ink-color: var(--primary-text-color);
--justify-action-buttons: space-between;
color: var(--primary-text-color);
}
ha-dialog .form {