mirror of
https://github.com/home-assistant/frontend.git
synced 2025-11-10 11:30:01 +00:00
Fix disabled automation style (#26988)
* Update disabled state logic in action and condition editors to account for indent property * Remove opacity
This commit is contained in:
@@ -50,7 +50,9 @@ export default class HaAutomationActionEditor extends LitElement {
|
|||||||
class=${classMap({
|
class=${classMap({
|
||||||
"card-content": true,
|
"card-content": true,
|
||||||
disabled:
|
disabled:
|
||||||
this.disabled || (this.action.enabled === false && !this.yamlMode),
|
!this.indent &&
|
||||||
|
(this.disabled ||
|
||||||
|
(this.action.enabled === false && !this.yamlMode)),
|
||||||
yaml: yamlMode,
|
yaml: yamlMode,
|
||||||
indent: this.indent,
|
indent: this.indent,
|
||||||
card: !this.inSidebar,
|
card: !this.inSidebar,
|
||||||
|
|||||||
@@ -53,8 +53,9 @@ export default class HaAutomationConditionEditor extends LitElement {
|
|||||||
class=${classMap({
|
class=${classMap({
|
||||||
"card-content": true,
|
"card-content": true,
|
||||||
disabled:
|
disabled:
|
||||||
this.disabled ||
|
!this.indent &&
|
||||||
(this.condition.enabled === false && !this.yamlMode),
|
(this.disabled ||
|
||||||
|
(this.condition.enabled === false && !this.yamlMode)),
|
||||||
yaml: yamlMode,
|
yaml: yamlMode,
|
||||||
indent: this.indent,
|
indent: this.indent,
|
||||||
card: !this.inSidebar,
|
card: !this.inSidebar,
|
||||||
|
|||||||
@@ -44,7 +44,6 @@ export const rowStyles = css`
|
|||||||
|
|
||||||
export const editorStyles = css`
|
export const editorStyles = css`
|
||||||
.disabled {
|
.disabled {
|
||||||
opacity: 0.5;
|
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -141,7 +141,6 @@ export default class HaAutomationTriggerEditor extends LitElement {
|
|||||||
haStyle,
|
haStyle,
|
||||||
css`
|
css`
|
||||||
.disabled {
|
.disabled {
|
||||||
opacity: 0.5;
|
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user