Skip to content

Commit

Permalink
🐛 (slope) give feedback when currently hidden entity is selected
Browse files Browse the repository at this point in the history
  • Loading branch information
sophiamersmann committed Mar 21, 2024
1 parent c9f3a20 commit 2e10cc4
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -719,8 +719,12 @@ class LabelledSlopes
// Then, a special "foreground" set of entities is rendered over the background
@computed private get isLayerMode() {
return (
this.hoveredSeriesNames.length > 0 ||
this.focusedSeriesNames.length > 0 ||
this.hoveredSeriesNames.length > 0
// if the user has selected entities that are not in the chart,
// we want to move all entities into the background
(this.props.focusKeys?.length > 0 &&
this.focusedSeriesNames.length === 0)
)
}

Expand Down

0 comments on commit 2e10cc4

Please sign in to comment.