Skip to content

Commit

Permalink
Merge pull request #1259 from City-of-Helsinki/HDS-2160-change-toas-p…
Browse files Browse the repository at this point in the history
…rogress-bar-direction

(HDS-2160) change notification progressbar direction
  • Loading branch information
mrTuomoK authored Apr 16, 2024
2 parents 8d4effa + 6a47138 commit d59e5b6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
#### Changed

- [Component] What has been changed
- [Notification] Change auto closing notification progressbar to decrease instead of increase.

#### Fixed

Expand Down
4 changes: 2 additions & 2 deletions packages/react/src/components/notification/Notification.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,8 @@ const getCloseTransition = (duration: number) => ({
* @param duration
*/
const getAutoCloseTransition = (duration: number) => ({
from: { transform: 'translate3d(-100%, 0, 0)' },
to: { transform: 'translate3d(0%, 0, 0)' },
from: { transform: 'translate3d(0%, 0, 0)' },
to: { transform: 'translate3d(-100%, 0, 0)' },
config: {
duration,
},
Expand Down

0 comments on commit d59e5b6

Please sign in to comment.