Skip to content

Comments

feat(Toaster): Adds inline prop#29085

Merged
ling1726 merged 4 commits intomicrosoft:masterfrom
ling1726:react-toast/feat/inline
Sep 7, 2023
Merged

feat(Toaster): Adds inline prop#29085
ling1726 merged 4 commits intomicrosoft:masterfrom
ling1726:react-toast/feat/inline

Conversation

@ling1726
Copy link
Contributor

@ling1726 ling1726 commented Sep 6, 2023

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.

image

Fixes #29078

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 ling1726 marked this pull request as ready for review September 6, 2023 15:24
@ling1726 ling1726 requested a review from a team as a code owner September 6, 2023 15:24
@fabricteam
Copy link
Collaborator

fabricteam commented Sep 6, 2023

Perf Analysis (@fluentui/react-components)

No significant results to display.

All results

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

@codesandbox-ci
Copy link

codesandbox-ci bot commented Sep 6, 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 a24d5be:

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

@fabricteam
Copy link
Collaborator

fabricteam commented Sep 6, 2023

📊 Bundle size report

Package & Exports Baseline (minified/GZIP) PR Change
react-toast
Toast (including Toaster)
91.394 kB
27.314 kB
91.601 kB
27.394 kB
207 B
80 B
Unchanged fixtures
Package & Exports Size (minified/GZIP)
react-components
react-components: Button, FluentProvider & webLightTheme
69.517 kB
19.64 kB
react-components
react-components: Accordion, Button, FluentProvider, Image, Menu, Popover
208.327 kB
59.386 kB
react-components
react-components: FluentProvider & webLightTheme
40.713 kB
13.509 kB
react-portal-compat
PortalCompatProvider
6.541 kB
2.227 kB
🤖 This report was generated against 6752d6080a6e382c9fcc64163d9b4ea642b8367e

@size-auditor
Copy link

size-auditor bot commented Sep 6, 2023

Asset size changes

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

Baseline commit: 6752d6080a6e382c9fcc64163d9b4ea642b8367e (build)

@fabricteam
Copy link
Collaborator

fabricteam commented Sep 6, 2023

🕵 fluentuiv9 No visual regressions between this PR and main

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Inline toaster

3 participants