Skip to content

Commit

Permalink
"Image button has non-empty accessible name" (59796f): Use "attribute…
Browse files Browse the repository at this point in the history
… value" (#1514)

* Use "attribute value" instead of "state of the type attribute"

Co-authored-by: Aron Janecki <aronjanecki@gmail.com>
  • Loading branch information
Jym77 and ajanec01 committed Dec 21, 2020
1 parent 7c804bd commit a8006fb
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions _rules/image-button-non-empty-accessible-name-59796f.md
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ htmlHintIgnore:

## Applicability

This rule applies to any `input` element where the [state of the `type` attribute](https://html.spec.whatwg.org/multipage/input.html#states-of-the-type-attribute) is `image`, and that is [included in the accessibility tree][].
This rule applies to any `input` element with a `type` [attribute value][] of `image`, and that is [included in the accessibility tree][].

## Expectation

Expand Down Expand Up @@ -137,7 +137,7 @@ The `button` element is not an image button. [Success Criterion 1.1.1 Non-text C

#### Inapplicable Example 2

The `input` element with type with a `type` attribute in the `Button` state is not an image button. [Success Criterion 1.1.1 Non-text Content](https://www.w3.org/TR/WCAG21/#non-text-content) can not fail text buttons. Only non-text content is applicable.
The `input` element with the `type` [attribute value][] of `button` is not an image button. [Success Criterion 1.1.1 Non-text Content](https://www.w3.org/TR/WCAG21/#non-text-content) can not fail text buttons. Only non-text content is applicable.

```html
<input type="button" value="My button" />
Expand Down Expand Up @@ -167,5 +167,6 @@ The image button is ignored by assistive technologies because it is not [include
<input type="image" src="/test-assets/shared/search-icon.svg" style="display: none;" />
```

[included in the accessibility tree]: #included-in-the-accessibility-tree 'Definition of included in the accessibility tree'
[accessible name]: #accessible-name 'Definition of accessible name'
[accessible name]: #accessible-name 'Definition of Accessible Name'
[attribute value]: #attribute-value 'Definition of Attribute Value'
[included in the accessibility tree]: #included-in-the-accessibility-tree 'Definition of Included in the Accessibility Tree'

0 comments on commit a8006fb

Please sign in to comment.