From fcd313caf47f4b7ec0b4e3306bdf05ad2d84de62 Mon Sep 17 00:00:00 2001 From: Nguyen Tran Date: Fri, 6 Jan 2023 20:15:14 -0500 Subject: [PATCH] Add aria-activedescendant-has-tabindex rule in accessibility docs --- site/content/docs/06-accessibility-warnings.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/site/content/docs/06-accessibility-warnings.md b/site/content/docs/06-accessibility-warnings.md index 8d3d44a94e..7aa3873cce 100644 --- a/site/content/docs/06-accessibility-warnings.md +++ b/site/content/docs/06-accessibility-warnings.md @@ -19,6 +19,18 @@ Enforce no `accesskey` on element. Access keys are HTML attributes that allow we --- +### `a11y-aria-activedescendant-has-tabindex` + +An element with `aria-activedescendant` must be tabbable, so it must either have an inherent `tabindex` or declare `tabindex` as an attribute. + +```sv + +
+ +``` + +--- + ### `a11y-aria-attributes` Certain reserved DOM elements do not support ARIA roles, states and properties. This is often because they are not visible, for example `meta`, `html`, `script`, `style`. This rule enforces that these DOM elements do not contain the `aria-*` props.