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
  • Loading branch information
sissbruecker authored Nov 26, 2024
1 parent b2fe10c commit 8b1656c
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 8b1656c

Please sign in to comment.