Skip to content

Commit

Permalink
chore(summary-name): add role=button example (#4528)
Browse files Browse the repository at this point in the history
Closes: #3444

---------

Co-authored-by: Steven Lambert <2433219+straker@users.noreply.github.com>
  • Loading branch information
WilcoFiers and straker authored Jul 10, 2024
1 parent c05cf45 commit f379c32
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions test/integration/rules/summary-name/summary-name.html
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,11 @@
Conflict resolution gets this to be ignored
</details>

<details>
<summary id="button-role-fail" role="button"></summary>
Hello world
</details>

<!-- Invalid naming methods -->

<details>
Expand Down
3 changes: 2 additions & 1 deletion test/integration/rules/summary-name/summary-name.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
["#heading-role-fail"],
["#value-attr-fail"],
["#alt-attr-fail"],
["#label-elm-fail"]
["#label-elm-fail"],
["#button-role-fail"]
],
"passes": [
["#text-pass"],
Expand Down

0 comments on commit f379c32

Please sign in to comment.