-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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 : updated tooltip styles #28264
Conversation
Perf Analysis (
|
Scenario | Render type | Master Ticks | PR Ticks | Iterations | Status |
---|---|---|---|---|---|
Avatar | mount | 591 | 623 | 5000 | |
Button | mount | 289 | 294 | 5000 | |
Field | mount | 1060 | 1081 | 5000 | |
FluentProvider | mount | 663 | 669 | 5000 | |
FluentProviderWithTheme | mount | 75 | 90 | 10 | |
FluentProviderWithTheme | virtual-rerender | 81 | 71 | 10 | |
FluentProviderWithTheme | virtual-rerender-with-unmount | 79 | 78 | 10 | |
InfoButton | mount | 13 | 16 | 5000 | |
MakeStyles | mount | 855 | 857 | 50000 | |
Persona | mount | 1670 | 1625 | 5000 | |
SpinButton | mount | 1351 | 1380 | 5000 |
Asset size changesSize Auditor did not detect a change in bundle size for any component! Baseline commit: 9b5b3f33ad05e2dce6457c72b9e5ffa352033e47 (build) |
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 c6dddb8:
|
📊 Bundle size report
Unchanged fixtures
|
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.
Hi @kkakroo, thanks for the PR. Unfortunately it looks like this approach breaks the withArrow
styles, probably because the overflow: hidden
style clips the arrow. Additionally, we'd prefer to avoid clipping/ellipsifying the tooltip content if possible, since the point of the tooltip is to show additional information.
It looks like overflowWrap: 'break-word'
would be a reasonable fix for the linked issue. If you'd like you can update this PR with that style, or I can make a PR with that change.
Also, please put the style on the 'root' class; the 'visible' class is just about controlling visibility.
Hi @behowell , thanks for the comment. |
change/@fluentui-react-tooltip-0c7f8278-85ad-44f1-82b3-8048cf63b2e7.json
Outdated
Show resolved
Hide resolved
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.
Thanks for the update. It'd be good to add visual regression test for this case as well. Could you add a test case to apps\vr-tests-react-components\src\stories\Tooltip.stories.tsx
? Thanks.
@behowell , added VR tests as requested. |
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.
Looks good, thanks for making the updates!
* master: Fixed bugs and added more stories to the Breadcrumb (microsoft#28267) refactor: Keep vanillajs code only where needed (microsoft#28278) fix: correcting focus behavior of react-search (microsoft#28241) Tooltip : updated tooltip styles (microsoft#28264)
* master: (95 commits) docs(react-drawer): improve drawer stories examples (microsoft#28283) bugfix: adds grid-template-columns to DialogBody styles to ensure grid template layout (microsoft#28272) Doc: Tree Infinite Scrolling (microsoft#28197) fix(react-card): infer a11y id from immediate header element (microsoft#28266) Fixed bugs and added more stories to the Breadcrumb (microsoft#28267) refactor: Keep vanillajs code only where needed (microsoft#28278) fix: correcting focus behavior of react-search (microsoft#28241) Tooltip : updated tooltip styles (microsoft#28264) applying package updates feat(react-tags): add styles for size (microsoft#28229) docs(react-dialog): update DialogTriggerOutsideDialog to include focus behavior (microsoft#28176) bugfix: Ensures dialog actions stretches on breakpoints (microsoft#28258) applying package updates fix: TableHeaderCell should not render button when not sortable (microsoft#28097) fix(react-file-type-icons): Map mhtml extension to html icon (microsoft#28112) Fix overlapping axis labels on smaller viewports (microsoft#28239) useArrowNavigationGroup grid-linear axis (microsoft#28253) applying package updates fix: Alert example missing aria-label for icon (microsoft#28234) Overflow divider fix (microsoft#28011) ...
* master: docs(react-drawer): best practices (microsoft#28040) docs(react-drawer): add missing documentation for Drawer stories (microsoft#28284) docs(react-drawer): improve type descriptions and fix TS circular references (microsoft#28282) docs(react-drawer): improve drawer stories examples (microsoft#28283) bugfix: adds grid-template-columns to DialogBody styles to ensure grid template layout (microsoft#28272) Doc: Tree Infinite Scrolling (microsoft#28197) fix(react-card): infer a11y id from immediate header element (microsoft#28266) Fixed bugs and added more stories to the Breadcrumb (microsoft#28267) refactor: Keep vanillajs code only where needed (microsoft#28278) fix: correcting focus behavior of react-search (microsoft#28241) Tooltip : updated tooltip styles (microsoft#28264)
🎉 Handy links: |
🎉 Handy links: |
Previous Behavior
Tooltip content exceeds its container when long text is added
New Behavior
Tooltip content gets trimmed with ellipsis when long text is added
Related Issue(s)