feat: Implement useUncontrolledFocus hook#29895
Merged
ling1726 merged 6 commits intomicrosoft:masterfrom Nov 27, 2023
Merged
Conversation
Exposes a hook to enable uncontrolled tabster to improve interop between v8 FocusZone and FocusTrapZone. Also updates `useTabster` to use the new external focus trap check so that it works with v8 FocusTrapZone
Collaborator
Perf Analysis (
|
| Scenario | Render type | Master Ticks | PR Ticks | Iterations | Status |
|---|---|---|---|---|---|
| FluentProviderWithTheme | mount | 71 | 85 | 10 | Possible regression |
All results
| Scenario | Render type | Master Ticks | PR Ticks | Iterations | Status |
|---|---|---|---|---|---|
| Avatar | mount | 632 | 664 | 5000 | |
| Button | mount | 314 | 304 | 5000 | |
| Field | mount | 1076 | 1119 | 5000 | |
| FluentProvider | mount | 698 | 714 | 5000 | |
| FluentProviderWithTheme | mount | 71 | 85 | 10 | Possible regression |
| FluentProviderWithTheme | virtual-rerender | 62 | 65 | 10 | |
| FluentProviderWithTheme | virtual-rerender-with-unmount | 72 | 68 | 10 | |
| MakeStyles | mount | 852 | 851 | 50000 | |
| Persona | mount | 1732 | 1730 | 5000 | |
| SpinButton | mount | 1326 | 1411 | 5000 |
Collaborator
📊 Bundle size reportUnchanged fixtures
|
Collaborator
🕵 fluentuiv9 No visual regressions between this PR and main |
|
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 c623a69:
|
Asset size changesSize Auditor did not detect a change in bundle size for any component! Baseline commit: 31dd521cf40a23d78d1169cbe4f31a107c782178 (build) |
layershifter
approved these changes
Nov 22, 2023
ling1726
commented
Nov 26, 2023
change/@fluentui-react-components-22466e0d-b22b-4ce2-9dc7-624450174651.json
Outdated
Show resolved
Hide resolved
ling1726
commented
Nov 26, 2023
change/@fluentui-react-tabster-aacd5d7c-2260-4855-ace5-a3aeeb6c862b.json
Show resolved
Hide resolved
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.

Exposes a hook to enable uncontrolled tabster to improve interop between v8 FocusZone and FocusTrapZone.
Also updates
useTabsterto use the new external focus trap check so that it works with v8 FocusTrapZone