Skip to content

Commit eafa0dc

Browse files
test: disable chart series state animations in visual tests (#13163) (#13165)
Co-authored-by: web-padawan <iamkulykov@gmail.com>
1 parent c9c7e41 commit eafa0dc

3 files changed

Lines changed: 12 additions & 2 deletions

File tree

‎packages/charts/test/chart-not-animated-styles.js‎

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,20 @@ import { addGlobalStyles } from '@vaadin/component-base/src/css-utils.js';
33
import { css, registerStyles } from '@vaadin/vaadin-themable-mixin';
44

55
// Highcharts' own animations. The CSS transitions the base styles declare are
6-
// disabled by the rules below.
6+
// disabled by the rules below. Series states set their own animation, which
7+
// overrides `chart.animation` and fades the series in non-styled mode.
78
Highcharts.setOptions({
89
chart: { animation: false },
9-
plotOptions: { series: { animation: false } },
10+
plotOptions: {
11+
series: {
12+
animation: false,
13+
states: {
14+
hover: { animation: false },
15+
inactive: { animation: false },
16+
normal: { animation: false },
17+
},
18+
},
19+
},
1020
tooltip: { animation: false, hideDelay: 0 },
1121
});
1222

41 Bytes
Loading
0 Bytes
Loading

0 commit comments

Comments
 (0)