Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 3 commits into from
Jun 20, 2024

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

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
4 checks passed
@patternfly-build
Copy link

🎉 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