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

[react-interactions] Add tab handling to FocusList #16958

Merged
merged 1 commit into from
Sep 30, 2019

Conversation

trueadm
Copy link
Contributor

@trueadm trueadm commented Sep 30, 2019

This is a follow up to #16922, where we add the same tab keyboard control behavior to FocusList

@sizebot
Copy link

sizebot commented Sep 30, 2019

Details of bundled changes.

Comparing: 10c7dfe...86fb6d8

react-interactions

File Filesize Diff Gzip Diff Prev Size Current Size Prev Gzip Current Gzip ENV
react-interactions-events/focus.development.js 0.0% -0.0% 11.81 KB 11.81 KB 2.57 KB 2.57 KB UMD_DEV
react-interactions-events/tap.development.js 0.0% 0.0% 17.8 KB 17.8 KB 3.85 KB 3.85 KB UMD_DEV
react-interactions-events/press.production.min.js 0.0% 🔺+0.1% 2.62 KB 2.62 KB 1.09 KB 1.09 KB UMD_PROD
react-interactions-events/tap.production.min.js 0.0% 0.0% 6.23 KB 6.23 KB 2.35 KB 2.35 KB UMD_PROD
ReactFocusList-dev.js +23.5% +17.3% 4.49 KB 5.54 KB 1.15 KB 1.34 KB FB_WWW_DEV
react-interactions-events/context-menu.development.js 0.0% -0.2% 2.68 KB 2.68 KB 1006 B 1004 B UMD_DEV
react-interactions-events/input.development.js 0.0% -0.1% 4.52 KB 4.52 KB 1.44 KB 1.44 KB UMD_DEV
react-interactions-events/context-menu.development.js 0.0% -0.1% 2.49 KB 2.49 KB 960 B 959 B NODE_DEV
react-interactions-accessibility/focus-manager.development.js +0.6% 0.0% 2.75 KB 2.76 KB 1.03 KB 1.03 KB NODE_DEV
react-interactions-events/input.production.min.js 0.0% 🔺+0.1% 1.66 KB 1.66 KB 915 B 916 B NODE_PROD
react-interactions-events/scroll.production.min.js 0.0% 🔺+0.1% 2.44 KB 2.44 KB 1.09 KB 1.09 KB NODE_PROD
react-interactions-accessibility/focus-manager.production.min.js 🔺+0.7% 🔺+0.4% 1.26 KB 1.27 KB 707 B 710 B NODE_PROD
ReactFocusManager-dev.js +0.6% -0.1% 2.73 KB 2.74 KB 1010 B 1009 B FB_WWW_DEV
ReactFocusManager-prod.js 🔺+1.3% 🔺+0.1% 2.33 KB 2.37 KB 866 B 867 B FB_WWW_PROD
react-interactions-accessibility/focus-table.development.js 0.0% +0.1% 9.27 KB 9.27 KB 1.95 KB 1.95 KB NODE_DEV
react-interactions-accessibility/focus-list.development.js +22.9% +16.4% 4.55 KB 5.59 KB 1.18 KB 1.37 KB NODE_DEV
react-interactions-events/press-legacy.production.min.js 0.0% 0.0% 7.13 KB 7.13 KB 2.71 KB 2.71 KB NODE_PROD
react-interactions-accessibility/focus-list.production.min.js 🔺+22.6% 🔺+15.4% 1.57 KB 1.92 KB 788 B 909 B NODE_PROD
ReactFocusList-prod.js 🔺+28.3% 🔺+18.4% 3.96 KB 5.08 KB 1.01 KB 1.2 KB FB_WWW_PROD
react-interactions-events/focus.development.js 0.0% -0.0% 11.63 KB 11.63 KB 2.53 KB 2.52 KB NODE_DEV
react-interactions-events/tap.development.js 0.0% 0.0% 17.62 KB 17.62 KB 3.79 KB 3.79 KB NODE_DEV
react-interactions-accessibility/tabbable-scope.development.js 0.0% +0.2% 1.2 KB 1.2 KB 597 B 598 B NODE_DEV
react-interactions-events/tap.production.min.js 0.0% 0.0% 6.06 KB 6.06 KB 2.29 KB 2.3 KB NODE_PROD
react-interactions-events/keyboard.development.js 0.0% 0.0% 5.97 KB 5.97 KB 2.24 KB 2.24 KB UMD_DEV
react-interactions-events/swipe.development.js 0.0% +0.1% 6 KB 6 KB 1.62 KB 1.63 KB UMD_DEV
react-interactions-events/swipe.production.min.js 0.0% 🔺+0.1% 2.45 KB 2.45 KB 1.1 KB 1.11 KB UMD_PROD
react-interactions-events/drag.development.js 0.0% 0.0% 6.98 KB 6.98 KB 2.21 KB 2.21 KB NODE_DEV
react-interactions-events/keyboard.development.js 0.0% 0.0% 5.79 KB 5.79 KB 2.19 KB 2.19 KB NODE_DEV
react-interactions-events/swipe.development.js 0.0% +0.1% 5.82 KB 5.82 KB 1.58 KB 1.58 KB NODE_DEV
react-interactions-events/swipe.production.min.js 0.0% 🔺+0.1% 2.27 KB 2.27 KB 1.05 KB 1.05 KB NODE_PROD
react-interactions-accessibility/focus-control.production.min.js 0.0% -0.2% 1.65 KB 1.65 KB 809 B 807 B NODE_PROD

Generated by 🚫 dangerJS against 86fb6d8

@trueadm trueadm merged commit ac8e8b3 into facebook:master Sep 30, 2019
@trueadm trueadm deleted the focus-manager-fix branch September 30, 2019 15:13
@@ -158,6 +158,33 @@ function testWithPointerType(message, testFn) {
});
}

function emulateBrowserTab(backwards) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please can you move this into the test file you're using it in, for now

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure. Will do in a follow up! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants