Skip to content

Commit fc4488f

Browse files
Add fallback for ProgressBar animation duration (#5136)
* Add fallback for animation * expand animation shorthand * explicit directions
1 parent 14f3a12 commit fc4488f

File tree

1 file changed

+8
-6
lines changed
  • packages/@adobe/spectrum-css-temp/components/barloader

1 file changed

+8
-6
lines changed

packages/@adobe/spectrum-css-temp/components/barloader/index.css

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -107,15 +107,17 @@ governing permissions and limitations under the License.
107107
.spectrum-BarLoader--indeterminate .spectrum-BarLoader-fill {
108108
inline-size: var(--spectrum-barloader-large-indeterminate-fill-width);
109109
position: relative;
110+
animation-duration: var(--spectrum-barloader-large-indeterminate-duration);
111+
animation-iteration-count: infinite;
110112
animation-timing-function: var(--spectrum-barloader-large-indeterminate-animation-ease);
111113
will-change: transform;
112-
}
113114

114-
[dir='ltr'] .spectrum-BarLoader--indeterminate .spectrum-BarLoader-fill {
115-
animation: indeterminate-loop-ltr var(--spectrum-barloader-large-indeterminate-duration) infinite;
116-
}
117-
[dir='rtl'] .spectrum-BarLoader--indeterminate .spectrum-BarLoader-fill {
118-
animation: indeterminate-loop-rtl var(--spectrum-barloader-large-indeterminate-duration) infinite;
115+
[dir='ltr'] & {
116+
animation-name: indeterminate-loop-ltr;
117+
}
118+
[dir='rtl'] & {
119+
animation-name: indeterminate-loop-rtl;
120+
}
119121
}
120122

121123
@keyframes indeterminate-loop-ltr {

0 commit comments

Comments
 (0)