From f4ed38c75ee78a5fbb92c34a07867e096af7cdca Mon Sep 17 00:00:00 2001 From: Jean-Yves Moyen Date: Tue, 10 Mar 2020 14:56:47 +0100 Subject: [PATCH 1/2] Move passed to inapplicable example --- _rules/button-accessible-name-97a4e1.md | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/_rules/button-accessible-name-97a4e1.md b/_rules/button-accessible-name-97a4e1.md index 17de579629d..8fe4cf7e953 100755 --- a/_rules/button-accessible-name-97a4e1.md +++ b/_rules/button-accessible-name-97a4e1.md @@ -86,21 +86,13 @@ This element with a `button` role has an [accessible name][] because of its `ari #### Passed Example 5 -This `summary` element with an [implicit role](#implicit-role) of `button` has an [accessible name][] because of its text content. - -```html -Press Here -``` - -#### Passed Example 6 - This `button` element with the `disabled` attribute has an [accessible name][] because of its text content. ```html ``` -#### Passed Example 7 +#### Passed Example 6 This off screen `button` element has an [accessible name][] because of its text content. @@ -119,7 +111,7 @@ This off screen `button` element has an [accessible name][] because of its text ``` -#### Passed Example 8 +#### Passed Example 7 This `input` element has an [accessible name][] because of the default accessible name for an `input` element with a `type` attribute set to `reset`. @@ -198,5 +190,15 @@ This `button` element has a `link` role. Links are tested in a separate rule whi ``` +#### Inapplicable Example 4 + +There is no element with a semantic role of `button`. + +```html +
Press Here
+``` + +#### Passed Example 6 + [accessible name]: #accessible-name 'Definition of accessible name' [included in the accessibility tree]: #included-in-the-accessibility-tree 'Definition of included in the accessibility tree' From 2e1d81ea6f948aa8c2f3c9e010b7ebb1a5a1a149 Mon Sep 17 00:00:00 2001 From: Jean-Yves Moyen Date: Tue, 10 Mar 2020 15:18:25 +0100 Subject: [PATCH 2/2] Remove extra test heading --- _rules/button-accessible-name-97a4e1.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/_rules/button-accessible-name-97a4e1.md b/_rules/button-accessible-name-97a4e1.md index 8fe4cf7e953..ab76344f3c8 100755 --- a/_rules/button-accessible-name-97a4e1.md +++ b/_rules/button-accessible-name-97a4e1.md @@ -198,7 +198,5 @@ There is no element with a semantic role of `button`.
Press Here
``` -#### Passed Example 6 - [accessible name]: #accessible-name 'Definition of accessible name' [included in the accessibility tree]: #included-in-the-accessibility-tree 'Definition of included in the accessibility tree'