Skip to content

Commit

Permalink
mirror-list: fix aria-label
Browse files Browse the repository at this point in the history
Signed-off-by: Miao Wang <[email protected]>
  • Loading branch information
shankerwangmiao committed May 7, 2024
1 parent aa2f9c5 commit 0c40ad5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _includes/main-mirror-list.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ <h3 id="mirror-title" class="align-self-center">{% fa_svg fas.fa-cube %} 镜像
href="{{url}}" title="{{description}}"
{% endraw %}{% else %}{% raw %}
data-bs-toggle="popover" data-bs-trigger="hover" data-bs-placement="right"
:data-bs-content="mir.description" :href="mir.url" :aria-label="mir.name + ', ' + mir.description"
:data-bs-content="mir.description" :href="mir.url" :aria-label="mir.name + (mir.description ? ', ' + mir.description : '')"
v-with-popover
{% endraw %}{% endif %}
>
Expand Down

0 comments on commit 0c40ad5

Please sign in to comment.