feat(react-badge): Add animated number transitions to CounterBadge#35744
feat(react-badge): Add animated number transitions to CounterBadge#35744leddie24 wants to merge 7 commits intomicrosoft:masterfrom
Conversation
📊 Bundle size reportUnchanged fixtures
|
|
Pull request demo site: URL |
| @@ -0,0 +1,7 @@ | |||
| { | |||
There was a problem hiding this comment.
🕵🏾♀️ visual changes to review in the Visual Change Report
vr-tests-react-components/CalendarCompat 4 screenshots
| Image Name | Diff(in Pixels) | Image Type |
|---|---|---|
| vr-tests-react-components/CalendarCompat.multiDayView - High Contrast.default.chromium.png | 1203 | Changed |
| vr-tests-react-components/CalendarCompat.multiDayView - Dark Mode.default.chromium.png | 1088 | Changed |
| vr-tests-react-components/CalendarCompat.multiDayView.default.chromium_1.png | 485 | Changed |
| vr-tests-react-components/CalendarCompat.multiDayView - RTL.default.chromium.png | 479 | Changed |
vr-tests-react-components/Charts-DonutChart 2 screenshots
| Image Name | Diff(in Pixels) | Image Type |
|---|---|---|
| vr-tests-react-components/Charts-DonutChart.Dynamic.default.chromium.png | 5581 | Changed |
| vr-tests-react-components/Charts-DonutChart.Dynamic - RTL.default.chromium.png | 5570 | Changed |
vr-tests-react-components/Positioning 2 screenshots
| Image Name | Diff(in Pixels) | Image Type |
|---|---|---|
| vr-tests-react-components/Positioning.Positioning end.updated 2 times.chromium.png | 507 | Changed |
| vr-tests-react-components/Positioning.Positioning end.chromium.png | 139 | Changed |
vr-tests-react-components/Skeleton converged 1 screenshots
| Image Name | Diff(in Pixels) | Image Type |
|---|---|---|
| vr-tests-react-components/Skeleton converged.Opaque Skeleton with square - Dark Mode.default.chromium.png | 2 | Changed |
vr-tests-react-components/TagPicker 4 screenshots
| Image Name | Diff(in Pixels) | Image Type |
|---|---|---|
| vr-tests-react-components/TagPicker.disabled - Dark Mode.disabled input hover.chromium.png | 658 | Changed |
| vr-tests-react-components/TagPicker.disabled - High Contrast.chromium.png | 1319 | Changed |
| vr-tests-react-components/TagPicker.disabled - RTL.disabled input hover.chromium.png | 635 | Changed |
| vr-tests-react-components/TagPicker.disabled.disabled input hover.chromium.png | 677 | Changed |
There were 5 duplicate changes discarded. Check the build logs for more information.
|
Hey @leddie24, thanks for sending this in! Quick question - could you please clarify where this feature request came from? Was there an open issue or maybe a chat with someone on our team? We’ll might need to sync up with PM/Design teams before moving forward, since we’re trying not to add custom stuff to the core unless most partners need it. This could be a great fit for a community extension instead! |
|
@dmytrokirpa , thanks for the comment here. Closing this for now, originally thought this would be an added feature for Fluent UI when working with Casey Baker, but he's saying it's likely to be a custom instead of a PR for Fluent UI here. |

Previous Behavior
New Behavior
This PR adds support for animated digit transitions in CounterBadge via a new isAnimated prop. When enabled, digits smoothly slide in/out as the count value changes — sliding up when increasing and down when decreasing.
New Features
Implementation Details
number-badge.mp4
Related Issue(s)