From 6c6d1d11138e7b86b7545c9bc2f995460c35fcef Mon Sep 17 00:00:00 2001 From: Nguyen Tran Date: Thu, 5 Jan 2023 16:50:09 -0500 Subject: [PATCH] Add no-noniteractive-element-to-interactive-role rule in accessibility docs --- site/content/docs/06-accessibility-warnings.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/site/content/docs/06-accessibility-warnings.md b/site/content/docs/06-accessibility-warnings.md index 8d3d44a94e..a1d80fde26 100644 --- a/site/content/docs/06-accessibility-warnings.md +++ b/site/content/docs/06-accessibility-warnings.md @@ -263,6 +263,17 @@ Some HTML elements have default ARIA roles. Giving these elements an ARIA role t --- +### `a11y-no-noninteractive-element-to-interactive-role` + +[WAI-ARIA](https://www.w3.org/TR/wai-aria-1.1/#usage_intro) roles should not be used to convert a non-interactive element to an interactive element. Interactive ARIA roles include `button`, `link`, `checkbox`, `menuitem`, `menuitemcheckbox`, `menuitemradio`, `option`, `radio`, `searchbox`, `switch` and `textbox`. + +```sv + +

Button

+``` + +--- + ### `a11y-no-noninteractive-tabindex` Tab key navigation should be limited to elements on the page that can be interacted with.