mirror of
https://github.com/discourse/discourse.git
synced 2024-11-29 04:03:57 -06:00
A11Y: topic list links should not be headings (#27700)
This commit is contained in:
parent
7c12b75a5c
commit
72a5389459
@ -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>
|
||||
|
@ -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>`
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user