a11y-doc: Adjust Focus Control to new 16.3 refs + link fixes.#742
a11y-doc: Adjust Focus Control to new 16.3 refs + link fixes.#742gaearon merged 2 commits intoreactjs:masterfrom AlmeroSteyn:a11y-docs-update
Conversation
|
Deploy preview for reactjs ready! Built with commit 6883e33 |
|
NOTE: I accidentally duplicated #708 in this fix. |
There was a problem hiding this comment.
Maybe we should promote React.forwardRef() here instead?
|
@gaearon I have adjusted the part about HOC's to mention ref forwarding. To avoid too much code example duplication and keep focus on the a11y issue at hand I have still not added a code example as this can be found through the link. The sentence has now become:
What do you think? |
|
Sounds good. Mind rebasing? |
|
Done! |
|
Wow that was super quick! Thank you! |
With release of React 16.3 and the changes to the ref API I have adjusted the accessibility doc to reflect this.
I also fixed a few dead/broken links I found on this page.
I have chosen not to refer to
forwardRefin the a11y doc as it is more for creators of HOC's and trying to explain it again on this page would detract from achieving accessibility IMHO.Content changes are limited to the Programmatically managing focus section. Changes are summarised in the following captures: