Skip to content
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

Tooltip - support custom mountNode #22134

Merged
merged 13 commits into from
Mar 28, 2022

Conversation

micahgodbolt
Copy link
Member

@micahgodbolt micahgodbolt commented Mar 16, 2022

Tooltip is being rendered inside of a Portal, but the mountNode prop is not accessible to be passed through like you can in Popover. A custom mountNode is required for tooltips rendered inside of full screen divs (like a video player).

Added the mountNode prop along with a demo of how to use the prop.

@codesandbox-ci
Copy link

codesandbox-ci bot commented Mar 16, 2022

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 7f2f654:

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

@fabricteam
Copy link
Collaborator

fabricteam commented Mar 16, 2022

📊 Bundle size report

Package & Exports Baseline (minified/GZIP) PR Change
react-tooltip
Tooltip
42.794 kB
14.712 kB
42.837 kB
14.727 kB
43 B
15 B
Unchanged fixtures
Package & Exports Size (minified/GZIP)
react-components
react-components: Accordion, Button, FluentProvider, Image, Menu, Popover
176.089 kB
49.113 kB
react-components
react-components: FluentProvider & webLightTheme
32.526 kB
10.645 kB
🤖 This report was generated against dc052f73217d64dc7724710483fc6bc020620b77

@fabricteam
Copy link
Collaborator

fabricteam commented Mar 16, 2022

Perf Analysis (@fluentui/react-components)

No significant results to display.

All results

Scenario Render type Master Ticks PR Ticks Iterations Status
Avatar mount 828 788 5000
Button mount 521 554 5000
FluentProvider mount 1797 1873 5000
FluentProviderWithTheme mount 252 246 10
FluentProviderWithTheme virtual-rerender 210 230 10
FluentProviderWithTheme virtual-rerender-with-unmount 277 315 10
MakeStyles mount 1513 1547 50000

@size-auditor
Copy link

size-auditor bot commented Mar 16, 2022

Asset size changes

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

Baseline commit: dc052f73217d64dc7724710483fc6bc020620b77 (build)

@andrefcdias andrefcdias removed their assignment Mar 24, 2022
@micahgodbolt micahgodbolt merged commit f10cc04 into microsoft:master Mar 28, 2022
@micahgodbolt micahgodbolt deleted the tooltip-nodetarget branch March 28, 2022 15:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants