A11Y: tag should be "role" not "aria-role" (#15653)

This commit is contained in:
Kris 2022-01-20 09:58:32 -05:00 committed by GitHub
parent f0c1a4fab8
commit 1d02b9728d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -3,7 +3,7 @@
<table class="category-list {{if showTopics "with-topics"}}">
<thead>
<tr>
<th class="category"><span aria-role="heading" aria-level="2" id="categories-only-category">{{i18n "categories.category"}}</span></th>
<th class="category"><span role="heading" aria-level="2" id="categories-only-category">{{i18n "categories.category"}}</span></th>
<th class="topics">{{i18n "categories.topics"}}</th>
{{#if showTopics}}
<th class="latest">{{i18n "categories.latest"}}</th>
@ -29,7 +29,7 @@
<table class="category-list {{if showTopics "with-topics"}} {{unless showMutedCategories "hidden"}}">
<thead>
<tr>
<th class="category"><span aria-role="heading" aria-level="2" id="categories-only-category-muted">{{i18n "categories.category"}}</span></th>
<th class="category"><span role="heading" aria-level="2" id="categories-only-category-muted">{{i18n "categories.category"}}</span></th>
<th class="topics">{{i18n "categories.topics"}}</th>
{{#if showTopics}}
<th class="latest">{{i18n "categories.latest"}}</th>

View File

@ -1,4 +1,4 @@
<div aria-role="heading" aria-level="2" class="table-heading">
<div role="heading" aria-level="2" class="table-heading">
{{i18n (concat "filters." filter ".title")}}
{{plugin-outlet name="categories-topics-table-heading" connectorTagName="div"}}
</div>