A11Y: do not use duplicate IDs (#15654)

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

View File

@ -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}}