Skip to content

Commit 9f8423c

Browse files
authored
Only animate search icon spinner when visible (#11257)
1 parent e36b9e5 commit 9f8423c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/main/scss/form/_search-bar.scss

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -105,11 +105,6 @@
105105
&::after {
106106
border-color: currentColor;
107107
clip-path: inset(0 0 50% 50%);
108-
animation: loading-spinner 1s infinite linear;
109-
110-
@media (prefers-reduced-motion) {
111-
animation-duration: 2s;
112-
}
113108
}
114109
}
115110

@@ -141,6 +136,11 @@
141136
opacity: 1;
142137
scale: 1;
143138
filter: blur(0);
139+
animation: loading-spinner 1s infinite linear;
140+
141+
@media (prefers-reduced-motion) {
142+
animation-duration: 2s;
143+
}
144144
}
145145
}
146146
}

0 commit comments

Comments
 (0)