A11Y: do not use duplicate IDs (#15654)
This commit is contained in:
parent
b9f650e55e
commit
6a48106ed4
|
@ -29,14 +29,14 @@
|
||||||
<table class="category-list {{if showTopics "with-topics"}} {{unless showMutedCategories "hidden"}}">
|
<table class="category-list {{if showTopics "with-topics"}} {{unless showMutedCategories "hidden"}}">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th class="category"><span aria-role="heading" aria-level="2" id="categories-only-category">{{i18n "categories.category"}}</span></th>
|
<th class="category"><span aria-role="heading" aria-level="2" id="categories-only-category-muted">{{i18n "categories.category"}}</span></th>
|
||||||
<th class="topics">{{i18n "categories.topics"}}</th>
|
<th class="topics">{{i18n "categories.topics"}}</th>
|
||||||
{{#if showTopics}}
|
{{#if showTopics}}
|
||||||
<th class="latest">{{i18n "categories.latest"}}</th>
|
<th class="latest">{{i18n "categories.latest"}}</th>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody aria-labelledby="categories-only-category">
|
<tbody aria-labelledby="categories-only-category-muted">
|
||||||
{{#each categories as |category|}}
|
{{#each categories as |category|}}
|
||||||
{{parent-category-row category=category showTopics=showTopics listType="muted"}}
|
{{parent-category-row category=category showTopics=showTopics listType="muted"}}
|
||||||
{{/each}}
|
{{/each}}
|
||||||
|
|
Loading…
Reference in New Issue