feat(Toaster): Adds inline prop#29085
Merged
ling1726 merged 4 commits intomicrosoft:masterfrom Sep 7, 2023
Merged
Conversation
Adds the `inline` prop to the Toaster. This will render the toasts in DOM order instead of in a portal. The positioning of the toasts will be relative to the closest positioned ancestor.
ling1726
commented
Sep 6, 2023
packages/react-components/react-toast/src/state/vanilla/getPositionStyles.ts
Show resolved
Hide resolved
Collaborator
Perf Analysis (
|
| Scenario | Render type | Master Ticks | PR Ticks | Iterations | Status |
|---|---|---|---|---|---|
| Avatar | mount | 627 | 626 | 5000 | |
| Button | mount | 321 | 306 | 5000 | |
| Field | mount | 1109 | 1120 | 5000 | |
| FluentProvider | mount | 713 | 691 | 5000 | |
| FluentProviderWithTheme | mount | 84 | 80 | 10 | |
| FluentProviderWithTheme | virtual-rerender | 74 | 68 | 10 | |
| FluentProviderWithTheme | virtual-rerender-with-unmount | 72 | 86 | 10 | |
| InfoButton | mount | 12 | 17 | 5000 | |
| MakeStyles | mount | 854 | 851 | 50000 | |
| Persona | mount | 1734 | 1717 | 5000 | |
| SpinButton | mount | 1343 | 1386 | 5000 |
|
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 a24d5be:
|
Collaborator
📊 Bundle size report
Unchanged fixtures
|
Asset size changesSize Auditor did not detect a change in bundle size for any component! Baseline commit: 6752d6080a6e382c9fcc64163d9b4ea642b8367e (build) |
Collaborator
🕵 fluentuiv9 No visual regressions between this PR and main |
bsunderhus
approved these changes
Sep 7, 2023
1 task
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.

Adds the
inlineprop to the Toaster. This will render the toasts in DOM order instead of in a portal.The positioning of the toasts will be relative to the closest positioned ancestor.
Fixes #29078