Repository navigation
refactor(react-message-bar): migrate slide & fade to motion components (redo) - #35168
Merged
Robert Penner (robertpenner) merged 7 commits intoSep 24, 2025
Conversation
📊 Bundle size reportUnchanged fixtures
|
|
Pull request demo site: URL |
Robert Penner (robertpenner)
marked this pull request as draft
September 9, 2025 19:26
Robert Penner (robertpenner)
marked this pull request as ready for review
September 9, 2025 20:28
Robert Penner (robertpenner)
requested a review
from Oleksandr Fediashov (layershifter)
September 10, 2025 04:39
Robert Penner (robertpenner)
force-pushed
the
refactor/message-bar-motion
branch
from
September 15, 2025 14:26
44c03f1 to
ea75e4b
Compare
Oleksandr Fediashov (layershifter)
approved these changes
Sep 16, 2025
2 tasks done
- Replace react-transition-group with @fluentui/react-motion components - Use PresenceGroup and custom MessageBarMotion component - Create custom fadeAtom and slideAtom motion definitions - Remove MessageBarTransition.tsx and related CSS animations - Add deprecation markers for unused properties - Update to latest motion package versions (react-motion ^9.10.4, react-motion-components-preview ^0.10.0) - Remove react-transition-group dependency This restores the motion component refactoring from PR microsoft#33465, which was reverted due to issue microsoft#33914. The underlying motion framework bug has been fixed in PR microsoft#34164.
…idation tests - Add ResizeObserver mock in jest setup for MessageBar component tests - Required because MessageBar uses useMessageBarReflow which depends on ResizeObserver - Add comprehensive tests for bug microsoft#33914 to validate motion components handle ref forwarding gracefully - Tests confirm motion components now warn instead of crashing with invalid children
Robert Penner (robertpenner)
force-pushed
the
refactor/message-bar-motion
branch
from
September 23, 2025 18:25
bbc1593 to
9843511
Compare
Robert Penner (robertpenner)
deleted the
refactor/message-bar-motion
branch
September 24, 2025 16:56
Alexander Katrukhin (pixel-perfectionist)
pushed a commit
to pixel-perfectionist/fluentui
that referenced
this pull request
Oct 8, 2025
…s (redo) (microsoft#35168) Co-authored-by: Oleksandr Fediashov <[email protected]>
Tudor Popa (tudorpopams)
pushed a commit
to tudorpopams/fluentui
that referenced
this pull request
Apr 14, 2026
…s (redo) (microsoft#35168) Co-authored-by: Oleksandr Fediashov <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


MessageBarGroup
Previous Behavior
•
MessageBarGroupanimations were implemented usingreact-transition-groupand CSS.• The animations did not respond to the OS animations toggle.
New Behavior
MessageBarGroupanimations use motion components in a PresenceGroup.react-transition-groupdependency is removed from all of v9!react-componentsis 7 kB smaller.MessageBarTransition.tsxis deleted.Testing Notes
• Test the animations in the
MessageBarAnimation example. (PR build)Related Issue(s)
• Fixes #33470
History and Background
This PR re-applies the motion component refactoring from #33465, which was originally merged on December 20, 2024, but was later reverted in #34037 on March 19, 2025 due to a critical bug discovered in issue #33914.
What happened:
react-transition-groupto the modern motion components frameworkHow this PR addresses the original bug:
@fluentui/react-motion ^9.10.4and@fluentui/react-motion-components-preview ^0.10.0which include the fix from fix(react-motion): improve element validation to work with React 19 #34164