-
Notifications
You must be signed in to change notification settings - Fork 2.9k
feat(react-drawer): dialog slot to be only used by internal composition API #29279
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(react-drawer): dialog slot to be only used by internal composition API #29279
Conversation
|
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 322eb4b:
|
Perf Analysis (
|
| Scenario | Render type | Master Ticks | PR Ticks | Iterations | Status |
|---|---|---|---|---|---|
| InfoButton | mount | 15 | 14 | 5000 | Possible regression |
All results
| Scenario | Render type | Master Ticks | PR Ticks | Iterations | Status |
|---|---|---|---|---|---|
| Avatar | mount | 615 | 655 | 5000 | |
| Button | mount | 302 | 294 | 5000 | |
| Field | mount | 1102 | 1124 | 5000 | |
| FluentProvider | mount | 696 | 691 | 5000 | |
| FluentProviderWithTheme | mount | 79 | 85 | 10 | |
| FluentProviderWithTheme | virtual-rerender | 68 | 69 | 10 | |
| FluentProviderWithTheme | virtual-rerender-with-unmount | 74 | 75 | 10 | |
| InfoButton | mount | 15 | 14 | 5000 | Possible regression |
| MakeStyles | mount | 860 | 865 | 50000 | |
| Persona | mount | 1723 | 1709 | 5000 | |
| SpinButton | mount | 1405 | 1378 | 5000 |
📊 Bundle size reportUnchanged fixtures
|
Asset size changesSize Auditor did not detect a change in bundle size for any component! Baseline commit: c1ae0fb42575ae2deb11b32110538adbd0f652ad (build) |
| "comment": "feat: make dialog slot internal to be used for composition only", | ||
| "packageName": "@fluentui/react-drawer", | ||
| "email": "[email protected]", | ||
| "dependentChangeType": "patch" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't forget to update in to feature
|
This PR is not needed as #29392 now have all of these changes. |
Previous Behavior
Dialog was created as an external slot and users could easily override to any other component with the same signature. That could lead to a completely broken Drawer as it is heavily dependent on Dialog.
New Behavior
Makes the Dialog as an internal slot. That makes it possible to override the Dialog component only when explicitly using the composition API.