Skip to content

Commit 9bca25f

Browse files
authored
fix: set img role to thumbnail container (#1) (#82)
1 parent d968d18 commit 9bca25f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

javascripts/discourse/components/topic-list-thumbnail.gjs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ export default class TopicListThumbnail extends Component {
8989
(if this.hasThumbnail "has-thumbnail" "no-thumbnail")
9090
}}
9191
>
92-
<a href={{this.url}} aria-label={{this.topic.title}}>
92+
<a href={{this.url}} role="img" aria-label={{this.topic.title}}>
9393
{{#if this.hasThumbnail}}
9494
<img
9595
class="background-thumbnail"
@@ -98,6 +98,7 @@ export default class TopicListThumbnail extends Component {
9898
width={{this.width}}
9999
height={{this.height}}
100100
loading="lazy"
101+
alt=""
101102
/>
102103
<img
103104
class="main-thumbnail"
@@ -106,6 +107,7 @@ export default class TopicListThumbnail extends Component {
106107
width={{this.width}}
107108
height={{this.height}}
108109
loading="lazy"
110+
alt=""
109111
/>
110112
{{else}}
111113
<div class="thumbnail-placeholder">

0 commit comments

Comments
 (0)