-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Closed
Labels
Area: TypescriptFluent UI react (v8)Issues about @fluentui/react (v8)Issues about @fluentui/react (v8)Needs: Author FeedbackNeeds: ReproPackage: merge-stylesShield: P1Shield developers rate the issue as a high priority (good issue)Shield developers rate the issue as a high priority (good issue)Status: No Recent Activity
Description
Library
React / v8 (@fluentui/react)
System Info
System:
OS: Windows 10 10.0.22631
CPU: (20) x64 Intel(R) Core(TM) i9-10900K CPU @ 3.70GHz
Memory: 78.44 GB / 127.71 GB
Browsers:
Edge: Chromium (125.0.2535.92)
Internet Explorer: 11.0.22621.3527Are you reporting Accessibility issue?
None
Reproduction
https://codepen.io/dotnetjunky/pen/QWRQYxG
Bug Description
We've bumping the @FluentUI packages in our repo to the latest version and discovered that the latest version of @fluentui/merge-styles, v8.6.10, contains a breaking change.
Specifically, we're calling the concatStyleSetsWithProps() function, which used to return a DeepPartial<TStyleSet> object. With the latest version, it returns a new object DeepPartialV2 instead. As a result, the returned style set object that we use to assign to the DefaultButton.styles is no longer building.
When I tried to downgrade merge-styles to v8.6.9, our code built fine.
This is the commit #31703 that contains the breaking change. @Hotell
Logs
No response
Requested priority
High
Products/sites affected
No response
Are you willing to submit a PR to fix?
no
Validations
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- The provided reproduction is a minimal reproducible example of the bug.
Metadata
Metadata
Assignees
Labels
Area: TypescriptFluent UI react (v8)Issues about @fluentui/react (v8)Issues about @fluentui/react (v8)Needs: Author FeedbackNeeds: ReproPackage: merge-stylesShield: P1Shield developers rate the issue as a high priority (good issue)Shield developers rate the issue as a high priority (good issue)Status: No Recent Activity