A11Y: topic list links should not be headings (#27700)

This commit is contained in:
Kris 2024-07-03 20:55:24 -04:00 committed by GitHub
parent 7c12b75a5c
commit 72a5389459
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 0 additions and 4 deletions

View File

@ -13,8 +13,6 @@ export default class TopicLink extends Component {
<a
href={{this.url}}
data-topic-id={{@topic.id}}
role="heading"
aria-level="2"
class="title"
...attributes
>{{htmlSafe @topic.fancyTitle}}</a>

View File

@ -17,8 +17,6 @@ export default function topicLink(topic, args = {}) {
return htmlSafe(
`<a href='${url}'
role='heading'
aria-level='2'
class='${classes.join(" ")}'
data-topic-id='${topic.id}'>${title}</a>`
);