Skip to content

Commit

Permalink
feat: improve accessibility of profile widget (#131)
Browse files Browse the repository at this point in the history
添加aria-label字段,提高Accessibility评分

```release-note
None
```
  • Loading branch information
Anyexyz committed Apr 11, 2024
1 parent 3008666 commit 44427b8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions templates/modules/widgets/profile.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
<div th:with="social_medias = ${theme.config.sidebar.social_media}" class="grid grid-cols-6 items-center gap-5">
<a
th:each="social_media : ${social_medias}"
th:aria-label="${social_media.name}"
class="flex cursor-pointer items-center justify-center rounded p-1 hover:bg-gray-100 dark:hover:bg-slate-700"
th:href="${social_media.url}"
target="_blank"
Expand Down

0 comments on commit 44427b8

Please sign in to comment.