8000 feat(alert-group): animate addition and removal of alerts by srambach · Pull Request #6804 · patternfly/patternfly · GitHub
[go: up one dir, main page]

Skip to content

feat(alert-group): animate addition and removal of alerts#6804

Merged
mcoker merged 3 commits intopatternfly:v6from
srambach:6592-toast-alert-animation
Jun 20, 2024
Merged

feat(alert-group): animate addition and removal of alerts#6804
mcoker merged 3 commits intopatternfly:v6from
srambach:6592-toast-alert-animation

Conversation

@srambach
Copy link
Member
@srambach srambach commented Jun 17, 2024

This add animation on the alert group item when adding/removing an item.

For expediency, for now there are no additional component variables - motion tokens are used directly in the transitions.
One other TODO remains: a toast alert that times out should leave in the same way, but have a slower duration than an alert that is dismissed.

To test, go to the toast alert full page example. Add .pf-m-offstage-top to simulate the starting condition. Remove it to see the alert appear (slide in from the top). To simulate removal, add the .pf-m-offstage-right class and see it slide to the right.

To test reduced motion, turn on "Reduce motion" in the Display settings (MacOS). When this option is on, only opacity should transition and nothing should slide.

Fixes #6592

@patternfly-build
Copy link
Collaborator
patternfly-build commented Jun 17, 2024

Copy link
Collaborator
@andrew-ronaldson andrew-ronaldson left a comment

Choose a reason for hiding this comment

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

Glorious

@srambach srambach linked an issue Jun 18, 2024 that may be closed by this pull request
Copy link
Contributor
@mcoker mcoker left a comment

Choose a reason for hiding this comment

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

lgtm! We can clean up the vars in a follow-up.

@mcoker mcoker merged commit 40898d1 into patternfly:v6 Jun 20, 2024
@patternfly-build
Copy link
Collaborator

🎉 This PR is included in version 6.0.0-alpha.167 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Alerts - Animating the toast alerts behaviours

4 participants

0