Skip to content

Commit

Permalink
Merge pull request #2076 from Shopify/fix-modal-animation
Browse files Browse the repository at this point in the history
[Modal] Fixed animation issue present in async Modal rendering
  • Loading branch information
mitchmaps authored Sep 4, 2019
2 parents 066d30b + aa44f83 commit df56f15
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions UNRELEASED.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ Use [the changelog guidelines](https://git.io/polaris-changelog-guidelines) to f

### Bug fixes

- Fixed animation for Modal when being rendered asynchronously ([#2076](https://github.com/Shopify/polaris-react/pull/2076))

### Documentation

### Development workflow
Expand Down
2 changes: 2 additions & 0 deletions src/components/Modal/components/Dialog/Dialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ export function Dialog({
}

const fadeUpClasses = {
appear: classNames(styles.animateFadeUp, styles.entering),
appearActive: classNames(styles.animateFadeUp, styles.entered),
enter: classNames(styles.animateFadeUp, styles.entering),
enterActive: classNames(styles.animateFadeUp, styles.entered),
exit: classNames(styles.animateFadeUp, styles.exiting),
Expand Down

0 comments on commit df56f15

Please sign in to comment.