diff --git a/src/components/trace/hat-graph-node.ts b/src/components/trace/hat-graph-node.ts index ba0ad0a250..781a8254f9 100644 --- a/src/components/trace/hat-graph-node.ts +++ b/src/components/trace/hat-graph-node.ts @@ -21,8 +21,7 @@ export class HatGraphNode extends LitElement { @property({ reflect: true, type: Boolean }) graphStart?: boolean; - @property({ reflect: true, type: Boolean, attribute: "nofocus" }) - noFocus = false; + @property({ type: Boolean, attribute: "nofocus" }) noFocus = false; @property({ reflect: true, type: Number }) badge?: number; @@ -41,8 +40,6 @@ export class HatGraphNode extends LitElement { const width = SPACING + NODE_SIZE; return html` @@ -228,6 +229,7 @@ export class HatScriptGraph extends LitElement { .graphStart=${graphStart} slot="head" ?track=${track} + ?active=${this.selected === path} .iconPath=${mdiAbTesting} nofocus > @@ -241,6 +243,7 @@ export class HatScriptGraph extends LitElement { .iconPath=${mdiClose} nofocus ?track=${trackFailed} + ?active=${this.selected === path} > `; @@ -315,12 +318,14 @@ export class HatScriptGraph extends LitElement { .graphStart=${graphStart} .iconPath=${mdiRefresh} ?track=${path in this.trace.trace} + ?active=${this.selected === path} slot="head" nofocus > 1} + ?active=${this.selected === path} nofocus .badge=${repeats > 1 ? repeats : undefined} >