Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/components/ha-chips.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ export class HaChips extends LitElement {
static get styles(): CSSResult {
return css`
${unsafeCSS(chipStyles)}
.mdc-chip {
background-color: rgba(var(--rgb-primary-text-color), 0.15);
color: var(--primary-text-color);
}
`;
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
import { LitElement, TemplateResult, html, property } from "lit-element";
import {
LitElement,
TemplateResult,
html,
property,
CSSResult,
css,
} from "lit-element";
import { HomeAssistant } from "../../../../types";
import { DeviceAutomation } from "../../../../data/device_automation";

Expand Down Expand Up @@ -76,4 +83,12 @@ export abstract class HaDeviceAutomationCard<
data[this.type] = [automation];
showAutomationEditor(this, data);
}

static get styles(): CSSResult {
return css`
h3 {
color: var(--primary-text-color);
}
`;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,9 @@ export class DialogDeviceAutomation extends LitElement {
`
: ""}
`
: html``}
: this.hass.localize(
"ui.panel.config.devices.automation.no_device_automations"
)}
</div>
<mwc-button slot="primaryAction" @click="${this._close}">
Close
Expand All @@ -126,54 +128,17 @@ export class DialogDeviceAutomation extends LitElement {
this._params = undefined;
}

static get styles(): CSSResult[] {
return [
css`
static get styles(): CSSResult {
return css`
ha-dialog {
--mdc-dialog-title-ink-color: var(--primary-text-color);
}
@media only screen and (min-width: 600px) {
ha-dialog {
--mdc-dialog-title-ink-color: var(--primary-text-color);
--justify-action-buttons: space-between;
--mdc-dialog-min-width: 600px;
}
@media only screen and (min-width: 600px) {
ha-dialog {
--mdc-dialog-min-width: 600px;
}
}
.form {
padding-bottom: 24px;
}
.location {
display: flex;
}
.location > * {
flex-grow: 1;
min-width: 0;
}
.location > *:first-child {
margin-right: 4px;
}
.location > *:last-child {
margin-left: 4px;
}
ha-location-editor {
margin-top: 16px;
}
ha-user-picker {
margin-top: 16px;
}
mwc-button.warning {
--mdc-theme-primary: var(--google-red-500);
}
.error {
color: var(--google-red-500);
}
a {
color: var(--primary-color);
}
p {
color: var(--primary-text-color);
}
`,
];
}
`;
}
}

Expand Down
Loading