fix(react-utilities): add compatibility with shadow DOM#28307
Merged
layershifter merged 1 commit intomicrosoft:masterfrom Jun 26, 2023
Merged
fix(react-utilities): add compatibility with shadow DOM#28307layershifter merged 1 commit intomicrosoft:masterfrom
layershifter merged 1 commit intomicrosoft:masterfrom
Conversation
Asset size changesSize Auditor did not detect a change in bundle size for any component! Baseline commit: d93cb0b8cb80f56e753ad18c645eeb84a9c10256 (build) |
Collaborator
Perf Analysis (
|
| Scenario | Render type | Master Ticks | PR Ticks | Iterations | Status |
|---|---|---|---|---|---|
| FluentProviderWithTheme | virtual-rerender | 67 | 60 | 10 | Possible regression |
| InfoButton | mount | 16 | 6 | 5000 | Possible regression |
All results
| Scenario | Render type | Master Ticks | PR Ticks | Iterations | Status |
|---|---|---|---|---|---|
| Avatar | mount | 593 | 588 | 5000 | |
| Button | mount | 303 | 288 | 5000 | |
| Field | mount | 1047 | 1051 | 5000 | |
| FluentProvider | mount | 645 | 640 | 5000 | |
| FluentProviderWithTheme | mount | 71 | 79 | 10 | |
| FluentProviderWithTheme | virtual-rerender | 67 | 60 | 10 | Possible regression |
| FluentProviderWithTheme | virtual-rerender-with-unmount | 71 | 76 | 10 | |
| InfoButton | mount | 16 | 6 | 5000 | Possible regression |
| MakeStyles | mount | 857 | 844 | 50000 | |
| Persona | mount | 1601 | 1615 | 5000 | |
| SpinButton | mount | 1324 | 1316 | 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 d5bf205:
|
Collaborator
Perf Analysis (
|
| Scenario | Current PR Ticks | Baseline Ticks | Ratio |
|---|---|---|---|
| TreeWith60ListItems.default | 86 | 75 | 1.15:1 |
| TextMinimalPerf.default | 195 | 181 | 1.08:1 |
| CarouselMinimalPerf.default | 264 | 246 | 1.07:1 |
| ItemLayoutMinimalPerf.default | 729 | 682 | 1.07:1 |
| RefMinimalPerf.default | 111 | 105 | 1.06:1 |
| TreeMinimalPerf.default | 484 | 456 | 1.06:1 |
| AttachmentMinimalPerf.default | 81 | 77 | 1.05:1 |
| ButtonMinimalPerf.default | 85 | 81 | 1.05:1 |
| HeaderSlotsPerf.default | 472 | 450 | 1.05:1 |
| ListMinimalPerf.default | 308 | 292 | 1.05:1 |
| ReactionMinimalPerf.default | 218 | 208 | 1.05:1 |
| SegmentMinimalPerf.default | 203 | 194 | 1.05:1 |
| TextAreaMinimalPerf.default | 292 | 279 | 1.05:1 |
| AvatarMinimalPerf.default | 106 | 102 | 1.04:1 |
| ChatMinimalPerf.default | 430 | 414 | 1.04:1 |
| ListNestedPerf.default | 319 | 311 | 1.03:1 |
| ProviderMergeThemesPerf.default | 673 | 656 | 1.03:1 |
| SliderMinimalPerf.default | 762 | 741 | 1.03:1 |
| StatusMinimalPerf.default | 399 | 389 | 1.03:1 |
| AttachmentSlotsPerf.default | 636 | 624 | 1.02:1 |
| ChatDuplicateMessagesPerf.default | 150 | 147 | 1.02:1 |
| FlexMinimalPerf.default | 152 | 149 | 1.02:1 |
| MenuButtonMinimalPerf.default | 946 | 928 | 1.02:1 |
| RosterPerf.default | 1510 | 1483 | 1.02:1 |
| SkeletonMinimalPerf.default | 196 | 192 | 1.02:1 |
| SplitButtonMinimalPerf.default | 2246 | 2199 | 1.02:1 |
| AnimationMinimalPerf.default | 294 | 292 | 1.01:1 |
| ButtonSlotsPerf.default | 306 | 302 | 1.01:1 |
| DatepickerMinimalPerf.default | 3484 | 3465 | 1.01:1 |
| FormMinimalPerf.default | 219 | 216 | 1.01:1 |
| GridMinimalPerf.default | 188 | 186 | 1.01:1 |
| ListCommonPerf.default | 384 | 380 | 1.01:1 |
| ListWith60ListItems.default | 356 | 353 | 1.01:1 |
| PopupMinimalPerf.default | 348 | 346 | 1.01:1 |
| PortalMinimalPerf.default | 85 | 84 | 1.01:1 |
| RadioGroupMinimalPerf.default | 258 | 255 | 1.01:1 |
| TableMinimalPerf.default | 236 | 234 | 1.01:1 |
| CustomToolbarPrototype.default | 1469 | 1449 | 1.01:1 |
| BoxMinimalPerf.default | 186 | 186 | 1:1 |
| ButtonOverridesMissPerf.default | 654 | 656 | 1:1 |
| ChatWithPopoverPerf.default | 195 | 195 | 1:1 |
| DialogMinimalPerf.default | 440 | 441 | 1:1 |
| DropdownManyItemsPerf.default | 390 | 390 | 1:1 |
| LabelMinimalPerf.default | 221 | 220 | 1:1 |
| TableManyItemsPerf.default | 1116 | 1115 | 1:1 |
| DividerMinimalPerf.default | 197 | 199 | 0.99:1 |
| DropdownMinimalPerf.default | 1430 | 1443 | 0.99:1 |
| EmbedMinimalPerf.default | 1829 | 1851 | 0.99:1 |
| HeaderMinimalPerf.default | 200 | 203 | 0.99:1 |
| LoaderMinimalPerf.default | 189 | 191 | 0.99:1 |
| TooltipMinimalPerf.default | 1242 | 1251 | 0.99:1 |
| CheckboxMinimalPerf.default | 1120 | 1140 | 0.98:1 |
| MenuMinimalPerf.default | 480 | 489 | 0.98:1 |
| IconMinimalPerf.default | 370 | 376 | 0.98:1 |
| AlertMinimalPerf.default | 151 | 155 | 0.97:1 |
| CardMinimalPerf.default | 307 | 316 | 0.97:1 |
| InputMinimalPerf.default | 526 | 543 | 0.97:1 |
| ToolbarMinimalPerf.default | 518 | 532 | 0.97:1 |
| LayoutMinimalPerf.default | 200 | 208 | 0.96:1 |
| ProviderMinimalPerf.default | 198 | 206 | 0.96:1 |
| VideoMinimalPerf.default | 430 | 446 | 0.96:1 |
| ImageMinimalPerf.default | 220 | 232 | 0.95:1 |
| AccordionMinimalPerf.default | 75 | 82 | 0.91:1 |
Collaborator
🕵 fluentuiv8 No visual regressions between this PR and main |
Collaborator
📊 Bundle size reportUnchanged fixtures
|
Collaborator
🕵 FluentUI-v0 No visual regressions between this PR and main |
Collaborator
🕵 fluentuiv9 No visual regressions between this PR and main |
Collaborator
Perf Analysis (
|
| Scenario | Render type | Master Ticks | PR Ticks | Iterations | Status |
|---|---|---|---|---|---|
| BaseButton | mount | 610 | 623 | 5000 | |
| Breadcrumb | mount | 1666 | 1676 | 1000 | |
| Checkbox | mount | 1693 | 1685 | 5000 | |
| CheckboxBase | mount | 1465 | 1479 | 5000 | |
| ChoiceGroup | mount | 2942 | 2894 | 5000 | |
| ComboBox | mount | 662 | 635 | 1000 | |
| CommandBar | mount | 6138 | 6069 | 1000 | |
| ContextualMenu | mount | 12108 | 12143 | 1000 | |
| DefaultButton | mount | 742 | 747 | 5000 | |
| DetailsRow | mount | 2184 | 2198 | 5000 | |
| DetailsRowFast | mount | 2208 | 2154 | 5000 | |
| DetailsRowNoStyles | mount | 1960 | 1980 | 5000 | |
| Dialog | mount | 2605 | 2593 | 1000 | |
| DocumentCardTitle | mount | 231 | 228 | 1000 | |
| Dropdown | mount | 1978 | 1932 | 5000 | |
| FocusTrapZone | mount | 1101 | 1097 | 5000 | |
| FocusZone | mount | 1052 | 1069 | 5000 | |
| GroupedList | mount | 40615 | 41001 | 2 | |
| GroupedList | virtual-rerender | 19560 | 19563 | 2 | |
| GroupedList | virtual-rerender-with-unmount | 50568 | 50093 | 2 | |
| GroupedListV2 | mount | 224 | 222 | 2 | |
| GroupedListV2 | virtual-rerender | 214 | 206 | 2 | |
| GroupedListV2 | virtual-rerender-with-unmount | 238 | 237 | 2 | |
| IconButton | mount | 1102 | 1081 | 5000 | |
| Label | mount | 353 | 324 | 5000 | |
| Layer | mount | 2714 | 2730 | 5000 | |
| Link | mount | 393 | 387 | 5000 | |
| MenuButton | mount | 934 | 926 | 5000 | |
| MessageBar | mount | 21425 | 21329 | 5000 | |
| Nav | mount | 1901 | 1925 | 1000 | |
| OverflowSet | mount | 773 | 784 | 5000 | |
| Panel | mount | 1754 | 1742 | 1000 | |
| Persona | mount | 735 | 747 | 1000 | |
| Pivot | mount | 850 | 855 | 1000 | |
| PrimaryButton | mount | 824 | 846 | 5000 | |
| Rating | mount | 4477 | 4550 | 5000 | |
| SearchBox | mount | 922 | 899 | 5000 | |
| Shimmer | mount | 1826 | 1841 | 5000 | |
| Slider | mount | 1343 | 1320 | 5000 | |
| SpinButton | mount | 2928 | 2894 | 5000 | |
| Spinner | mount | 373 | 386 | 5000 | |
| SplitButton | mount | 1806 | 1810 | 5000 | |
| Stack | mount | 413 | 410 | 5000 | |
| StackWithIntrinsicChildren | mount | 849 | 867 | 5000 | |
| StackWithTextChildren | mount | 2621 | 2597 | 5000 | |
| SwatchColorPicker | mount | 6077 | 6033 | 5000 | |
| TagPicker | mount | 1394 | 1452 | 5000 | |
| Text | mount | 375 | 385 | 5000 | |
| TextField | mount | 920 | 920 | 5000 | |
| ThemeProvider | mount | 820 | 825 | 5000 | |
| ThemeProvider | virtual-rerender | 588 | 585 | 5000 | |
| ThemeProvider | virtual-rerender-with-unmount | 1285 | 1273 | 5000 | |
| Toggle | mount | 615 | 616 | 5000 | |
| buttonNative | mount | 192 | 184 | 5000 |
6760052 to
d5bf205
Compare
bsunderhus
approved these changes
Jun 23, 2023
ling1726
approved these changes
Jun 26, 2023
Collaborator
|
🎉 Handy links: |
Collaborator
|
🎉 Handy links: |
2 tasks
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.

New Behavior
This PR updates
useOnClickOutside()anduseOnScrollOutside()to use.composedPath()where we can get a proper event target (event.targetwill be a shadow root if event happened inside it).Also adds Cypress tests and Cypress configuration files to cover the scenario with browser tests.
Related Issue(s)
Fixes #27763