Skip to content

Commit

Permalink
fix: restore hover effect on pie charts when using Lumo theme classes (
Browse files Browse the repository at this point in the history
…#6850) (#6866)

Co-authored-by: Sascha Ißbrücker <sissbruecker@vaadin.com>
  • Loading branch information
vaadin-bot and sissbruecker authored Nov 26, 2024
1 parent cb206a6 commit 571b67e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
package com.vaadin.flow.component.charts.themes;

import com.vaadin.flow.component.charts.model.AbstractDataLabels;
import com.vaadin.flow.component.charts.model.Hover;
import com.vaadin.flow.component.charts.model.States;
import com.vaadin.flow.component.charts.model.style.AxisStyle;
import com.vaadin.flow.component.charts.model.style.Color;
import com.vaadin.flow.component.charts.model.style.FontWeight;
Expand Down Expand Up @@ -164,10 +162,6 @@ public LumoDarkTheme() {
setDataLabelsDefaults(getPlotOptions().getPyramid().getDataLabels());
setDataLabelsDefaults(getPlotOptions().getSpline().getDataLabels());
setDataLabelsDefaults(getPlotOptions().getWaterfall().getDataLabels());

States states = new States();
states.setHover(new Hover(false));
getPlotOptions().getPie().setStates(states);
}

protected void setDataLabelsDefaults(AbstractDataLabels labels) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
package com.vaadin.flow.component.charts.themes;

import com.vaadin.flow.component.charts.model.AbstractDataLabels;
import com.vaadin.flow.component.charts.model.Hover;
import com.vaadin.flow.component.charts.model.States;
import com.vaadin.flow.component.charts.model.style.AxisStyle;
import com.vaadin.flow.component.charts.model.style.Color;
import com.vaadin.flow.component.charts.model.style.FontWeight;
Expand Down Expand Up @@ -164,10 +162,6 @@ public LumoLightTheme() {
setDataLabelsDefaults(getPlotOptions().getPyramid().getDataLabels());
setDataLabelsDefaults(getPlotOptions().getSpline().getDataLabels());
setDataLabelsDefaults(getPlotOptions().getWaterfall().getDataLabels());

States states = new States();
states.setHover(new Hover(false));
getPlotOptions().getPie().setStates(states);
}

protected void setDataLabelsDefaults(AbstractDataLabels labels) {
Expand Down

0 comments on commit 571b67e

Please sign in to comment.