Skip to content

Commit 3620c76

Browse files
committed
refactor: refactor a11y
1 parent 8ae418e commit 3620c76

3 files changed

Lines changed: 3 additions & 0 deletions

File tree

src/lib/component/Navbar.svelte

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@
8282
{:else if notification.details.image || notification.details.username}
8383
<img
8484
src="{notification.details.image || `https://minotar.net/avatar/${notification.details.username}/64`}"
85+
alt="{$_('buttons.view')}"
8586
width="48"
8687
height="48"
8788
class="rounded" />

src/lib/component/NotificationContainer.svelte

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
{:else if notification.details.image || notification.details.username}
4343
<img
4444
src="{notification.details.image || `https://minotar.net/avatar/${notification.details.username}/64`}"
45+
alt="{$_('buttons.view')}"
4546
width="48"
4647
height="48"
4748
class="rounded" />

src/lib/pages/NotificationsPage.svelte

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
{:else if notification.details.image || notification.details.username}
3939
<img
4040
src="{notification.details.image || `https://minotar.net/avatar/${notification.details.username}/64`}"
41+
alt="{$_('buttons.view')}"
4142
width="48"
4243
height="48"
4344
class="rounded" />

0 commit comments

Comments
 (0)