Skip to content

Commit

Permalink
fix-broken-summary-link (#2213)
Browse files Browse the repository at this point in the history
* fix-broken-summary-link

* Add link destination to ensure it works properly

* Update summary-non-empty-accessible-name-2t702h.md

---------

Co-authored-by: Daniel <[email protected]>
  • Loading branch information
WilcoFiers and daniel-montalvo authored Sep 3, 2024
1 parent b379b0c commit 70e6e12
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions _rules/summary-non-empty-accessible-name-2t702h.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ acknowledgments:

## Applicability

This rule applies to HTML `summary` elements for which all the following is true:
This rule applies to HTML `summary` elements for which all the following are true:

- the element is [included in the accessibility tree][]; and
- the element works as the [summary button for its parent `details` element][details summary]; and
- the element has no [explicit role][], or the [explicit role][] is ignored due to a [presentational role conflict][].
- the element has no [explicit role][], or the [explicit role][] is ignored due to a [presentational role conflict][presentational roles conflict].

## Expectation

Expand Down Expand Up @@ -130,7 +130,7 @@ This `summary` element has no [accessible name][], or an accessible name with ju

#### Failed Example 2

This `summary` element has an [explicit role][] of `none`. However, it is [focusable][] (by default) which causes [Presentational Roles Conflict Resolution][]. It fails because it has an empty [accessible name][].
This `summary` element has an [explicit role][] of `none`. However, it is [focusable][] (by default) which causes [Presentational Roles Conflict Resolution][presentational roles conflict]. It fails because it has an empty [accessible name][].

```html
<details>
Expand Down Expand Up @@ -200,7 +200,7 @@ This `summary` element is hidden to everyone.
[explicit role]: #explicit-role 'Definition of explicit role'
[focusable]: #focusable 'Definition of focusable'
[included in the accessibility tree]: #included-in-the-accessibility-tree 'Definition of included in the accessibility tree'
[presentational roles conflict resolution]: https://www.w3.org/TR/wai-aria-1.2/#conflict_resolution_presentation_none 'Presentational Roles Conflict Resolution'
[presentational roles conflict]: https://www.w3.org/TR/wai-aria-1.2/#conflict_resolution_presentation_none 'Presentational Roles Conflict Resolution'
[details summary]: https://html.spec.whatwg.org/multipage/interactive-elements.html#summary-for-its-parent-details ' HTML 5 definition of summary for its parent details'
[97a4e1]: https://www.w3.org/WAI/standards-guidelines/act/rules/97a4e1/
[6cfa84]: https://www.w3.org/WAI/standards-guidelines/act/rules/6cfa84/

0 comments on commit 70e6e12

Please sign in to comment.