Fix disabled icon button color (#8800)

Fixes #8797
This commit is contained in:
Bram Kragten 2021-04-02 20:18:56 +02:00 committed by GitHub
parent 82ad5c103d
commit d57cf93580
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 14 deletions

View File

@ -213,21 +213,21 @@ class HaAutomationPicker extends LitElement {
.label="${this.hass.localize(
"ui.panel.config.automation.picker.edit_automation"
)}"
><ha-svg-icon .path=${
automation.attributes.id ? mdiPencil : mdiPencilOff
}></ha-svg-icon>
>
<ha-svg-icon
.path=${automation.attributes.id ? mdiPencil : mdiPencilOff}
></ha-svg-icon>
</mwc-icon-button>
</a>
${
!automation.attributes.id
? html`
<paper-tooltip animation-delay="0" position="left">
${this.hass.localize(
"ui.panel.config.automation.picker.only_editable"
)}
</paper-tooltip>
`
: ""
}
${!automation.attributes.id
? html`
<paper-tooltip animation-delay="0" position="left">
${this.hass.localize(
"ui.panel.config.automation.picker.only_editable"
)}
</paper-tooltip>
`
: ""}
`,
};
return columns;

View File

@ -75,6 +75,7 @@ export const derivedStyles = {
"mdc-theme-on-primary": "var(--text-primary-color)",
"mdc-theme-on-secondary": "var(--text-primary-color)",
"mdc-theme-on-surface": "var(--primary-text-color)",
"mdc-theme-text-disabled-on-light": "var(--disabled-text-color)",
"mdc-theme-text-primary-on-background": "var(--primary-text-color)",
"mdc-theme-text-secondary-on-background": "var(--secondary-text-color)",
"mdc-theme-text-icon-on-background": "var(--secondary-text-color)",