Skip to content

Commit b0d82c7

Browse files
authored
button name move assumption to the correct section (#2286)
* button name move assumption to the correct section * Update button-non-empty-accessible-name-97a4e1.md * Update button-non-empty-accessible-name-97a4e1.md
1 parent e10a2ae commit b0d82c7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

_rules/button-non-empty-accessible-name-97a4e1.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,12 @@ This rule considers an exception for "image buttons" (i.e., `input` elements wit
3939

4040
- The rule assumes that all buttons are [user interface components as defined by WCAG 2](https://www.w3.org/TR/WCAG22/#dfn-user-interface-components).
4141

42+
- Some elements have a role of `button` and a default accessible name defined by the [HTML Accessibility API Mapping][html aam input button], for example `input` elements whose `type` [attribute value][] is either `submit` or `reset`. This rule considers that these default names can be descriptive and therefore does not fail them.
43+
4244
### Accessibility Support
4345

4446
- Implementation of [Presentational Roles Conflict Resolution][] varies from one browser or assistive technology to another. Depending on this, some elements can have a [semantic role][] of `button` and fail this rule with some technology but users of other technologies would not experience any accessibility issue.
4547

46-
- Some elements have a role of `button` and a default accessible name defined by the [HTML Accessibility API Mapping][html aam input button], for example `input` elements whose `type` [attribute value][] is either `submit` or `reset`. This rule considers that these default names can be descriptive and therefore does not fail them.
47-
4848
### Related rules
4949

5050
- [Image button has non-empty accessible name](https://www.w3.org/WAI/standards-guidelines/act/rules/59796f/)
@@ -226,7 +226,7 @@ This `button` element has an [explicit role][] of `none`; it is not [focusable][
226226
[attribute value]: #attribute-value 'Definition of Attribute Value'
227227
[explicit role]: #explicit-role 'Definition of explicit role'
228228
[focusable]: #focusable 'Definition of focusable'
229-
[html aam input button]: https://www.w3.org/TR/html-aam-1.0/#input-type-button-input-type-submit-and-input-type-reset 'HTML Accessibility API Mapping, reset and submit buttons'
229+
[html aam input button]: https://www.w3.org/TR/html-aam-1.0/#input-type-button-input-type-submit-and-input-type-reset-accessible-name-computation 'HTML Accessibility API Mapping, input button, input, and reset accessible name'
230230
[included in the accessibility tree]: #included-in-the-accessibility-tree 'Definition of included in the accessibility tree'
231231
[presentational roles conflict resolution]: https://www.w3.org/TR/wai-aria-1.2/#conflict_resolution_presentation_none 'Presentational Roles Conflict Resolution'
232232
[semantic role]: #semantic-role 'Definition of Semantic Role'

0 commit comments

Comments
 (0)