mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-28 19:56:42 +00:00
Fix color and overlap in close dialog header (#6539)
* Fix color and overlap in close dialog header * Use haStyleDialog instead
This commit is contained in:
parent
16b8b6698c
commit
69f4a618b2
@ -4,13 +4,14 @@ import {
|
|||||||
LitElement,
|
LitElement,
|
||||||
internalProperty,
|
internalProperty,
|
||||||
TemplateResult,
|
TemplateResult,
|
||||||
CSSResult,
|
|
||||||
css,
|
css,
|
||||||
|
CSSResultArray,
|
||||||
} from "lit-element";
|
} from "lit-element";
|
||||||
import "../../../../components/dialog/ha-paper-dialog";
|
import "../../../../components/dialog/ha-paper-dialog";
|
||||||
import "../../components/hui-views-list";
|
import "../../components/hui-views-list";
|
||||||
import type { SelectViewDialogParams } from "./show-select-view-dialog";
|
import type { SelectViewDialogParams } from "./show-select-view-dialog";
|
||||||
import { HomeAssistant } from "../../../../types";
|
import { HomeAssistant } from "../../../../types";
|
||||||
|
import { haStyleDialog } from "../../../../resources/styles";
|
||||||
import { createCloseHeading } from "../../../../components/ha-dialog";
|
import { createCloseHeading } from "../../../../components/ha-dialog";
|
||||||
import "../../../../components/ha-paper-dropdown-menu";
|
import "../../../../components/ha-paper-dropdown-menu";
|
||||||
import "@polymer/paper-item/paper-item";
|
import "@polymer/paper-item/paper-item";
|
||||||
@ -135,12 +136,15 @@ export class HuiDialogSelectView extends LitElement {
|
|||||||
this.closeDialog();
|
this.closeDialog();
|
||||||
}
|
}
|
||||||
|
|
||||||
static get styles(): CSSResult {
|
static get styles(): CSSResultArray {
|
||||||
return css`
|
return [
|
||||||
|
haStyleDialog,
|
||||||
|
css`
|
||||||
ha-paper-dropdown-menu {
|
ha-paper-dropdown-menu {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
`;
|
`,
|
||||||
|
];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user