Skip to content

Commit 89fda5d

Browse files
authored
test: disable combo box overlay animation (#9633)
1 parent a36b7da commit 89fda5d

File tree

3 files changed

+40
-0
lines changed

3 files changed

+40
-0
lines changed

packages/combo-box/test/visual/common.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,13 @@ registerStyles(
3535
animation: none;
3636
opacity: 1;
3737
}
38+
39+
:host([opening]),
40+
:host([closing]),
41+
:host([opening]) [part='overlay'],
42+
:host([closing]) [part='overlay'] {
43+
transition: none !important;
44+
animation: none !important;
45+
}
3846
`,
3947
);

packages/multi-select-combo-box/test/visual/common.js

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,22 @@ registerStyles(
2626
}
2727
`,
2828
);
29+
30+
/* Stop loader animation */
31+
registerStyles(
32+
'vaadin-multi-select-combo-box-overlay',
33+
css`
34+
:host([loading]) [part='loader'] {
35+
animation: none;
36+
opacity: 1;
37+
}
38+
39+
:host([opening]),
40+
:host([closing]),
41+
:host([opening]) [part='overlay'],
42+
:host([closing]) [part='overlay'] {
43+
transition: none !important;
44+
animation: none !important;
45+
}
46+
`,
47+
);

packages/time-picker/test/visual/common.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,16 @@ registerStyles(
2626
}
2727
`,
2828
);
29+
30+
registerStyles(
31+
'vaadin-time-picker-overlay',
32+
css`
33+
:host([opening]),
34+
:host([closing]),
35+
:host([opening]) [part='overlay'],
36+
:host([closing]) [part='overlay'] {
37+
transition: none !important;
38+
animation: none !important;
39+
}
40+
`,
41+
);

0 commit comments

Comments
 (0)