Fix display of disabled items in traces (#25293)

This commit is contained in:
Bram Kragten 2025-05-04 10:38:01 +03:00 committed by GitHub
parent bdad76937e
commit d7660370ab
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 8 deletions

View File

@ -11,8 +11,8 @@ export class HaTimeline extends LitElement {
@property({ type: Boolean, reflect: true }) public raised = false;
@property({ attribute: false, reflect: true, type: Boolean }) notEnabled =
false;
@property({ attribute: "not-enabled", reflect: true, type: Boolean })
notEnabled = false;
@property({ attribute: "last-item", type: Boolean }) public lastItem = false;
@ -82,7 +82,7 @@ export class HaTimeline extends LitElement {
margin-inline-start: initial;
width: 24px;
}
:host([notEnabled]) ha-svg-icon {
:host([not-enabled]) ha-svg-icon {
opacity: 0.5;
}
ha-svg-icon {

View File

@ -17,8 +17,8 @@ export class HatGraphNode extends LitElement {
@property({ type: Boolean }) public error = false;
@property({ attribute: false, reflect: true, type: Boolean }) notEnabled =
false;
@property({ attribute: "not-enabled", reflect: true, type: Boolean })
notEnabled = false;
@property({ attribute: "graph-start", reflect: true, type: Boolean })
graphStart = false;
@ -127,13 +127,13 @@ export class HatGraphNode extends LitElement {
--stroke-clr: var(--hover-clr);
--icon-clr: var(--default-icon-clr);
}
:host([notEnabled]) circle {
:host([not-enabled]) circle {
--stroke-clr: var(--disabled-clr);
}
:host([notEnabled][active]) circle {
:host([not-enabled][active]) circle {
--stroke-clr: var(--disabled-active-clr);
}
:host([notEnabled]:hover) circle {
:host([not-enabled]:hover) circle {
--stroke-clr: var(--disabled-hover-clr);
}
svg:not(.safari) {