Skip to content

Conversation

@marcosmoura
Copy link
Contributor

This is technically a Breaking Change, but as the package is still in preview, we can have that happening.

This change makes the open prop on all the main Drawer components to only accept a boolean value. Previously it was accepting a MotionShorthand type as well. This will be added back in the future when the react-motion package becomes stable.

For more information: #29711

@marcosmoura marcosmoura requested a review from a team as a code owner November 2, 2023 16:25
@marcosmoura marcosmoura self-assigned this Nov 2, 2023
@marcosmoura marcosmoura added the Component: Drawer The Fluent v9 Drawer component label Nov 2, 2023
@fabricteam
Copy link
Collaborator

Perf Analysis (@fluentui/react-components)

No significant results to display.

All results

Scenario Render type Master Ticks PR Ticks Iterations Status
Avatar mount 622 631 5000
Button mount 315 328 5000
Field mount 1142 1165 5000
FluentProvider mount 724 707 5000
FluentProviderWithTheme mount 81 86 10
FluentProviderWithTheme virtual-rerender 66 61 10
FluentProviderWithTheme virtual-rerender-with-unmount 79 76 10
MakeStyles mount 847 863 50000
Persona mount 1754 1748 5000
SpinButton mount 1394 1379 5000

@fabricteam
Copy link
Collaborator

📊 Bundle size report

Unchanged fixtures
Package & Exports Size (minified/GZIP)
react-components
react-components: Button, FluentProvider & webLightTheme
70.007 kB
20.164 kB
react-components
react-components: Accordion, Button, FluentProvider, Image, Menu, Popover
207.417 kB
59.289 kB
react-components
react-components: FluentProvider & webLightTheme
42.291 kB
14.005 kB
react-portal-compat
PortalCompatProvider
6.651 kB
2.252 kB
🤖 This report was generated against 526abab76556f7f0440acc89fa55a768d1956237

@codesandbox-ci
Copy link

codesandbox-ci bot commented Nov 2, 2023

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 9fe7016:

Sandbox Source
@fluentui/react 8 starter Configuration
@fluentui/react-components 9 starter Configuration

@marcosmoura marcosmoura enabled auto-merge (squash) November 2, 2023 16:45
@size-auditor
Copy link

size-auditor bot commented Nov 2, 2023

Asset size changes

Size Auditor did not detect a change in bundle size for any component!

Baseline commit: 526abab76556f7f0440acc89fa55a768d1956237 (build)

@marcosmoura marcosmoura merged commit b4b696c into microsoft:master Nov 2, 2023
@marcosmoura marcosmoura deleted the feat/react-drawer/open-prop-to-only-accepts-boolean branch November 2, 2023 16:48
marcosmoura added a commit to marcosmoura/fluentui that referenced this pull request Nov 2, 2023
* master:
  breaking(react-drawer): open now only accepts a boolean instead of MotionShorthand (microsoft#29736)
  fix (breadcrumb): Overflow examples refactoring (microsoft#29723)
  refactor(tools): replace deprecated apis (microsoft#29624)
  [Part 3] Update documentation content for all charts (microsoft#29727)
  chore: throws if FlatTree is used as a subtree (microsoft#29729)
  feat(react-storybook-addon-export-to-sandbox): make addon generic so it can be published and use by others (microsoft#29674)
  chore(TimePicker-compat): add bundle size fixture (microsoft#29717)
  applying package updates
  Move CredScanSuppression file to root so 1ESPT output task picks it up (microsoft#29722)
  fix(CI): increase pipeline agent timeout threshold to 90 minutes (microsoft#29710)
  fix(breadcrumb): examples and styles (microsoft#29679)
  chore(react-tree): stop unnecessary re-rendering when no actions are available (microsoft#29694)
  applying package updates
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Component: Drawer The Fluent v9 Drawer component

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants