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] More Tab Focus control handling #16751

Merged
merged 3 commits into from
Sep 11, 2019

Conversation

trueadm
Copy link
Contributor

@trueadm trueadm commented Sep 11, 2019

This is a follow up PR to the previous initial work to handle basic tab focus control with TabFocusController.jss.

This PR adds a few more features to the experimental scope API and, most importantly, provides an internal imperative mechanism for controlling tab focus via an API. I've also made containment an optional prop on TabFocusControllers and provided a way of exposing an imperative ref to scopes so these can easily be handed back via scope traversal.

In my next PR I plan on demonstrating taking this future and building components that allow for a powerful Grid based keyboard focusable system (using arrows + tab + modifiers).

@sizebot
Copy link

sizebot commented Sep 11, 2019

ReactDOM: size: 0.0%, gzip: 0.0%

Details of bundled changes.

Comparing: ae724be...029805a

react-art

File Filesize Diff Gzip Diff Prev Size Current Size Prev Gzip Current Gzip ENV
react-art.development.js +0.1% +0.1% 666.68 KB 667.42 KB 144.91 KB 145.01 KB UMD_DEV
react-art.production.min.js 0.0% 0.0% 103.24 KB 103.24 KB 31.49 KB 31.49 KB UMD_PROD
react-art.development.js +0.1% +0.1% 597.35 KB 598.09 KB 127.49 KB 127.61 KB NODE_DEV
react-art.production.min.js 0.0% 0.0% 68.25 KB 68.25 KB 20.69 KB 20.69 KB NODE_PROD
ReactART-dev.js +0.1% +0.1% 612.66 KB 613.4 KB 127.26 KB 127.37 KB FB_WWW_DEV
ReactART-prod.js 🔺+0.2% 🔺+0.2% 231.12 KB 231.6 KB 39.24 KB 39.32 KB FB_WWW_PROD

react-dom

File Filesize Diff Gzip Diff Prev Size Current Size Prev Gzip Current Gzip ENV
react-dom.profiling.min.js 0.0% 0.0% 117.12 KB 117.12 KB 36.86 KB 36.86 KB NODE_PROFILING
react-dom-server.browser.development.js 0.0% 0.0% 142.1 KB 142.1 KB 37.12 KB 37.12 KB UMD_DEV
ReactDOM-dev.js +0.1% +0.1% 953.92 KB 954.66 KB 210.6 KB 210.71 KB FB_WWW_DEV
react-dom-server.browser.production.min.js 0.0% 0.0% 19.8 KB 19.8 KB 7.36 KB 7.36 KB UMD_PROD
react-dom-test-utils.development.js 0.0% 0.0% 57.46 KB 57.46 KB 15.82 KB 15.82 KB UMD_DEV
react-dom-unstable-fizz.browser.development.js 0.0% +0.1% 3.78 KB 3.78 KB 1.53 KB 1.53 KB UMD_DEV
react-dom-unstable-fizz.browser.production.min.js 0.0% 🔺+0.1% 1.2 KB 1.2 KB 701 B 702 B UMD_PROD
react-dom-test-utils.development.js 0.0% 0.0% 55.73 KB 55.73 KB 15.49 KB 15.49 KB NODE_DEV
react-dom-unstable-fizz.browser.development.js 0.0% +0.1% 3.61 KB 3.61 KB 1.48 KB 1.48 KB NODE_DEV
react-dom-test-utils.production.min.js 0.0% 0.0% 10.96 KB 10.96 KB 4.09 KB 4.09 KB NODE_PROD
react-dom-unstable-fizz.browser.production.min.js 0.0% 🔺+0.3% 1.04 KB 1.04 KB 632 B 634 B NODE_PROD
react-dom.development.js +0.1% +0.1% 929.7 KB 930.44 KB 210.01 KB 210.12 KB UMD_DEV
react-dom.production.min.js 0.0% 0.0% 113.47 KB 113.47 KB 36.55 KB 36.56 KB UMD_PROD
react-dom.profiling.min.js 0.0% 0.0% 116.99 KB 116.99 KB 37.55 KB 37.56 KB UMD_PROFILING
react-dom.development.js +0.1% +0.1% 923.78 KB 924.52 KB 208.37 KB 208.48 KB NODE_DEV
react-dom-server.node.development.js 0.0% 0.0% 139.05 KB 139.05 KB 36.34 KB 36.34 KB NODE_DEV
react-dom.production.min.js 0.0% 0.0% 113.4 KB 113.4 KB 35.86 KB 35.86 KB NODE_PROD
react-dom-server.node.production.min.js 0.0% 0.0% 20.13 KB 20.13 KB 7.5 KB 7.51 KB NODE_PROD
ReactDOM-prod.js 🔺+0.1% 🔺+0.1% 379.97 KB 380.45 KB 69.28 KB 69.36 KB FB_WWW_PROD
ReactDOM-profiling.js +0.1% +0.1% 386.01 KB 386.49 KB 70.38 KB 70.46 KB FB_WWW_PROFILING
react-dom-server.browser.development.js 0.0% 0.0% 138.04 KB 138.04 KB 36.11 KB 36.11 KB NODE_DEV
react-dom-server.browser.production.min.js 0.0% 0.0% 19.73 KB 19.73 KB 7.34 KB 7.35 KB NODE_PROD
react-dom-unstable-native-dependencies.development.js 0.0% 0.0% 60.71 KB 60.71 KB 15.85 KB 15.85 KB UMD_DEV
react-dom-unstable-native-dependencies.production.min.js 0.0% 🔺+0.1% 10.75 KB 10.75 KB 3.67 KB 3.68 KB UMD_PROD
ReactDOMServer-dev.js 0.0% 0.0% 142.55 KB 142.55 KB 35.71 KB 35.72 KB FB_WWW_DEV
ReactDOMServer-prod.js 0.0% 0.0% 48.58 KB 48.58 KB 11.11 KB 11.11 KB FB_WWW_PROD
react-dom-unstable-native-dependencies.development.js 0.0% 0.0% 60.39 KB 60.39 KB 15.72 KB 15.72 KB NODE_DEV
react-dom-unstable-fizz.node.development.js 0.0% +0.1% 3.87 KB 3.87 KB 1.51 KB 1.51 KB NODE_DEV
react-dom-unstable-native-dependencies.production.min.js 0.0% 🔺+0.1% 10.49 KB 10.49 KB 3.58 KB 3.58 KB NODE_PROD
react-dom-unstable-fizz.node.production.min.js 0.0% 🔺+0.3% 1.1 KB 1.1 KB 666 B 668 B NODE_PROD

react-test-renderer

File Filesize Diff Gzip Diff Prev Size Current Size Prev Gzip Current Gzip ENV
ReactTestRenderer-dev.js +0.1% +0.1% 623.68 KB 624.42 KB 129.68 KB 129.79 KB FB_WWW_DEV
react-test-renderer-shallow.development.js 0.0% 0.0% 39.21 KB 39.21 KB 9.95 KB 9.95 KB UMD_DEV
react-test-renderer-shallow.production.min.js 0.0% 🔺+0.1% 11.41 KB 11.41 KB 3.53 KB 3.53 KB UMD_PROD
react-test-renderer-shallow.development.js 0.0% 0.0% 33.18 KB 33.18 KB 8.49 KB 8.49 KB NODE_DEV
react-test-renderer-shallow.production.min.js 0.0% 🔺+0.1% 11.55 KB 11.55 KB 3.62 KB 3.62 KB NODE_PROD
react-test-renderer.development.js +0.1% +0.1% 610.7 KB 611.44 KB 130.26 KB 130.38 KB UMD_DEV
react-test-renderer.production.min.js 0.0% 0.0% 70.19 KB 70.19 KB 21.52 KB 21.52 KB UMD_PROD
react-test-renderer.development.js +0.1% +0.1% 606.03 KB 606.76 KB 129.08 KB 129.19 KB NODE_DEV
react-test-renderer.production.min.js 0.0% 0.0% 69.88 KB 69.88 KB 21.19 KB 21.19 KB NODE_PROD

react-reconciler

File Filesize Diff Gzip Diff Prev Size Current Size Prev Gzip Current Gzip ENV
react-reconciler.development.js +0.1% +0.1% 596.04 KB 596.78 KB 126.28 KB 126.39 KB NODE_DEV
react-reconciler.production.min.js 0.0% 0.0% 70.33 KB 70.33 KB 20.75 KB 20.75 KB NODE_PROD
react-reconciler-reflection.development.js 0.0% 0.0% 19.52 KB 19.52 KB 6.38 KB 6.38 KB NODE_DEV
react-reconciler-reflection.production.min.js 0.0% 🔺+0.1% 2.6 KB 2.6 KB 1.16 KB 1.16 KB NODE_PROD
react-reconciler-persistent.development.js +0.1% +0.1% 593.05 KB 593.79 KB 125.03 KB 125.14 KB NODE_DEV
react-reconciler-persistent.production.min.js 0.0% 0.0% 70.34 KB 70.34 KB 20.75 KB 20.75 KB NODE_PROD

react-native-renderer

File Filesize Diff Gzip Diff Prev Size Current Size Prev Gzip Current Gzip ENV
ReactNativeRenderer-prod.js 0.0% 0.0% 274.92 KB 274.92 KB 47.11 KB 47.11 KB RN_OSS_PROD
ReactNativeRenderer-profiling.js 0.0% 0.0% 284.23 KB 284.23 KB 48.68 KB 48.68 KB RN_OSS_PROFILING
ReactFabric-prod.js 0.0% 0.0% 266.68 KB 266.68 KB 45.68 KB 45.68 KB RN_OSS_PROD
ReactFabric-profiling.js 0.0% 0.0% 276.38 KB 276.38 KB 47.38 KB 47.38 KB RN_OSS_PROFILING
ReactFabric-dev.js +0.1% +0.1% 751.86 KB 752.6 KB 158.87 KB 158.97 KB RN_FB_DEV
ReactFabric-prod.js 0.0% 0.0% 266.68 KB 266.68 KB 45.69 KB 45.69 KB RN_FB_PROD
ReactNativeRenderer-dev.js +0.1% +0.1% 745.25 KB 745.99 KB 157.7 KB 157.81 KB RN_OSS_DEV
ReactFabric-profiling.js 0.0% 0.0% 276.38 KB 276.38 KB 47.39 KB 47.39 KB RN_FB_PROFILING
ReactNativeRenderer-dev.js +0.1% +0.1% 745.42 KB 746.15 KB 157.78 KB 157.88 KB RN_FB_DEV
ReactNativeRenderer-prod.js 0.0% 0.0% 274.92 KB 274.92 KB 47.12 KB 47.12 KB RN_FB_PROD
ReactNativeRenderer-profiling.js 0.0% 0.0% 284.22 KB 284.22 KB 48.69 KB 48.69 KB RN_FB_PROFILING
ReactFabric-dev.js +0.1% +0.1% 751.69 KB 752.43 KB 158.78 KB 158.89 KB RN_OSS_DEV

Generated by 🚫 dangerJS against 029805a

@trueadm trueadm merged commit 3717c25 into facebook:master Sep 11, 2019
@trueadm trueadm deleted the tab-focus-controller branch September 11, 2019 20:35
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.

None yet

4 participants