Skip to content

Commit

Permalink
Fix Indeterminate Progress Bar animation in Firefox. Fixes #2258
Browse files Browse the repository at this point in the history
  • Loading branch information
nandaleite authored and jgthms committed May 18, 2019
1 parent 9d3c36e commit 247cb6e
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions sass/elements/progress.sass
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,19 @@ $progress-indeterminate-duration: 1.5s !default
&::-ms-fill
background-color: $progress-value-background-color
border: none
// Colors
@each $name, $pair in $colors
$color: nth($pair, 1)
&.is-#{$name}
&::-webkit-progress-value
background-color: $color
&::-moz-progress-bar
background-color: $color
&::-ms-fill
background-color: $color
&:indeterminate
background-image: linear-gradient(to right, $color 30%, $progress-bar-background-color 30%)

&:indeterminate
animation-duration: $progress-indeterminate-duration
animation-iteration-count: infinite
Expand All @@ -38,18 +51,6 @@ $progress-indeterminate-duration: 1.5s !default
background-color: transparent
&::-moz-progress-bar
background-color: transparent
// Colors
@each $name, $pair in $colors
$color: nth($pair, 1)
&.is-#{$name}
&::-webkit-progress-value
background-color: $color
&::-moz-progress-bar
background-color: $color
&::-ms-fill
background-color: $color
&:indeterminate
background-image: linear-gradient(to right, $color 30%, $progress-bar-background-color 30%)

// Sizes
&.is-small
Expand Down

0 comments on commit 247cb6e

Please sign in to comment.