-
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
fix: Portal compat should apply focus-visible
ponyfill
#24712
fix: Portal compat should apply focus-visible
ponyfill
#24712
Conversation
`@fluentui/react-portal-compat` now takes a dependency on `@fluentui/react-tabster` to apply the `focus-vislble` ponyfill. Also setup e2e tests for the portal compat package to test that the ponyfill is correctly applied.
📊 Bundle size report
Unchanged fixtures
|
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 263e12a:
|
Asset size changesSize Auditor did not detect a change in bundle size for any component! Baseline commit: e4d50f2c501c4a8be23b24373242f650a601fdaf (build) |
Perf Analysis (
|
Scenario | Render type | Master Ticks | PR Ticks | Iterations | Status |
---|---|---|---|---|---|
Avatar | mount | 1604 | 1635 | 5000 | |
Button | mount | 1174 | 1185 | 5000 | |
FluentProvider | mount | 1992 | 1949 | 5000 | |
FluentProviderWithTheme | mount | 803 | 801 | 10 | |
FluentProviderWithTheme | virtual-rerender | 726 | 722 | 10 | |
FluentProviderWithTheme | virtual-rerender-with-unmount | 800 | 772 | 10 | |
MakeStyles | mount | 2392 | 2324 | 50000 | |
SpinButton | mount | 3105 | 3102 | 5000 |
@ling1726 Can you please add a bundle size fixture to see how it affects bundle size? |
Added in 263e12a The minified size is ~5kb. I looked into the output and the extra code is keyborg + the ponyfill itself. It should be fine since if users are using the |
* master: (63 commits) feat: add helper types to assist DOM element handling (microsoft#24722) applying package updates Textarea/hc bug (microsoft#24701) Fix null ref in use slider (microsoft#24728) Add Field unit tests, and remove snapshot tests (microsoft#24706) Stress Test: add build commands (microsoft#24575) Coachmark - useOffsetHeight should cause re-render on each set state to match v7 functionality (microsoft#24702) Implement screener tests for Field components (microsoft#24684) Update Field types to clean up react-field.api.md (microsoft#24703) fix(Popup): remove rotate(360deg) from PopupContent content styles (microsoft#24432) fix(FocusZone): should reset tabindex when focus is outside the zone with prop `shouldResetActiveElementWhenTabFromZone` (microsoft#24463) Fix greyed out legend key contrast ratio (microsoft#24714) fix: Portal compat should apply `focus-visible` ponyfill (microsoft#24712) Fix artifact error (microsoft#24717) chore(react-dialog): remove localShorthands in favor of griffel shorthands (microsoft#24715) Skip screener checks for draft PRs with exception of appropriately la… (microsoft#24694) fix: Remove provider classname from focus styles (microsoft#24710) feat: autocontrolled `useTable` hook (microsoft#24688) feat: add dialog properties to getNativeElementProps (microsoft#24698) Using migrate rather than upgrade term (microsoft#24695) ...
@fluentui/react-portal-compat
now takes a dependency on@fluentui/react-tabster
to apply thefocus-vislble
ponyfill. Also setup e2e tests for the portal compat package to test that the ponyfill is correctly applied.Current Behavior
Portal compat will not apply v9 focus outline styles
New Behavior
Portal compat will apply v9 focus outline styles
Related Issue(s)
Fixes #24411