Skip to content

Commit

Permalink
addressable spans in labels
Browse files Browse the repository at this point in the history
  • Loading branch information
MindFreeze committed May 25, 2022
1 parent 1e9c740 commit 790fe7a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
5 changes: 2 additions & 3 deletions src/ha-sankey-chart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,8 @@ export class SankeyChart extends LitElement {
${show_icons && html`<ha-icon .icon=${stateIcon(box.entity)}></ha-icon>`}
</div>
<div class="label" style=${styleMap(labelStyle)}>
${formattedState}${box.unit_of_measurement}
${show_names && html`<span>&nbsp;${name}</span>`}
<span class="state">${formattedState}</span><span class="unit">${box.unit_of_measurement}</span>
${show_names && html`<span class="name">&nbsp;${name}</span>`}
</div>
</div>
`;
Expand Down Expand Up @@ -276,7 +276,6 @@ export class SankeyChart extends LitElement {
...entityConf,
color: undefined,
...remainingConf,
isRemaining: true,
accountedState: 0,
});
}
Expand Down
1 change: 0 additions & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ export type EntityConfig = {

export type EntityConfigInternal = EntityConfig & {
// children: string[];
isRemaining?: boolean;
accountedState?: number;
}

Expand Down

0 comments on commit 790fe7a

Please sign in to comment.