Commit 5783f7eb authored by Robert Knight's avatar Robert Knight

Add link to roving tabindex reference

parent 8e7cd3ca
...@@ -19,11 +19,11 @@ function isElementVisible(element) { ...@@ -19,11 +19,11 @@ function isElementVisible(element) {
* container element. * container element.
* *
* In addition to moving focus between elements when arrow keys are pressed, * In addition to moving focus between elements when arrow keys are pressed,
* this also implements the "roving tabindex" pattern which sets the `tabindex` * this also implements the "roving tabindex" pattern [1] which sets the
* attribute of elements to control which element gets focus when the user * `tabindex` attribute of elements to control which element gets focus when the
* tabs into the container. * user tabs into the container.
* *
* See [1] for a reference of how keyboard navigation should work in web * See [2] for a reference of how keyboard navigation should work in web
* applications and how it applies to various common widgets. * applications and how it applies to various common widgets.
* *
* @example * @example
...@@ -43,7 +43,8 @@ function isElementVisible(element) { ...@@ -43,7 +43,8 @@ function isElementVisible(element) {
* ) * )
* } * }
* *
* [1] https://www.w3.org/TR/wai-aria-practices/#keyboard * [1] https://www.w3.org/TR/wai-aria-practices/#kbd_roving_tabindex
* [2] https://www.w3.org/TR/wai-aria-practices/#keyboard
* *
* @param {import('preact').RefObject<HTMLElement>} containerRef * @param {import('preact').RefObject<HTMLElement>} containerRef
* @param {object} options * @param {object} options
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment