mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -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
|
<a
|
||||||
href={{this.url}}
|
href={{this.url}}
|
||||||
data-topic-id={{@topic.id}}
|
data-topic-id={{@topic.id}}
|
||||||
role="heading"
|
|
||||||
aria-level="2"
|
|
||||||
class="title"
|
class="title"
|
||||||
...attributes
|
...attributes
|
||||||
>{{htmlSafe @topic.fancyTitle}}</a>
|
>{{htmlSafe @topic.fancyTitle}}</a>
|
||||||
|
@ -17,8 +17,6 @@ export default function topicLink(topic, args = {}) {
|
|||||||
|
|
||||||
return htmlSafe(
|
return htmlSafe(
|
||||||
`<a href='${url}'
|
`<a href='${url}'
|
||||||
role='heading'
|
|
||||||
aria-level='2'
|
|
||||||
class='${classes.join(" ")}'
|
class='${classes.join(" ")}'
|
||||||
data-topic-id='${topic.id}'>${title}</a>`
|
data-topic-id='${topic.id}'>${title}</a>`
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user