Skip to content

Commit

Permalink
Fix color and overlap in close dialog header (#6539)
Browse files Browse the repository at this point in the history
* Fix color and overlap in close dialog header

* Use haStyleDialog instead
  • Loading branch information
ludeeus committed Aug 6, 2020
1 parent 16b8b66 commit 69f4a61
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions src/panels/lovelace/editor/select-view/hui-dialog-select-view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,14 @@ import {
LitElement,
internalProperty,
TemplateResult,
CSSResult,
css,
CSSResultArray,
} from "lit-element";
import "../../../../components/dialog/ha-paper-dialog";
import "../../components/hui-views-list";
import type { SelectViewDialogParams } from "./show-select-view-dialog";
import { HomeAssistant } from "../../../../types";
import { haStyleDialog } from "../../../../resources/styles";
import { createCloseHeading } from "../../../../components/ha-dialog";
import "../../../../components/ha-paper-dropdown-menu";
import "@polymer/paper-item/paper-item";
Expand Down Expand Up @@ -135,12 +136,15 @@ export class HuiDialogSelectView extends LitElement {
this.closeDialog();
}

static get styles(): CSSResult {
return css`
ha-paper-dropdown-menu {
width: 100%;
}
`;
static get styles(): CSSResultArray {
return [
haStyleDialog,
css`
ha-paper-dropdown-menu {
width: 100%;
}
`,
];
}
}

Expand Down

0 comments on commit 69f4a61

Please sign in to comment.