Skip to content

Commit

Permalink
ProgressBar: Add transition to determinate indicator (#53877)
Browse files Browse the repository at this point in the history
* ProgressBar: Add transition to determinate indicator

* Add CHANGELOG entry

* Increase transition time from 0.2s to 0.4s
  • Loading branch information
tyxla authored Aug 23, 2023
1 parent fcaa663 commit f5a26db
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions packages/components/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@

- `SandBox`: Fix the cleanup method in useEffect ([#53796](https://github.com/WordPress/gutenberg/pull/53796)).

### Enhancements

- `ProgressBar`: Add transition to determinate indicator ([#53877](https://github.com/WordPress/gutenberg/pull/53877)).

## 25.6.0 (2023-08-16)

### Enhancements
Expand Down
5 changes: 4 additions & 1 deletion packages/components/src/progress-bar/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,10 @@ export const Indicator = styled.div< {
animationName: animateProgressBar,
width: `${ INDETERMINATE_TRACK_WIDTH }%`,
} )
: css( { width: `${ value }%` } ) };
: css( {
width: `${ value }%`,
transition: 'width 0.4s ease-in-out',
} ) };
`;

export const ProgressElement = styled.progress`
Expand Down

1 comment on commit f5a26db

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Flaky tests detected in f5a26db.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.

🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/5950324060
📝 Reported issues:

Please sign in to comment.