From e1ac96def35997dea0fb3fb6778608dec93614be Mon Sep 17 00:00:00 2001 From: Xyphyn Date: Sat, 29 Jul 2023 19:59:55 -0700 Subject: [PATCH] a11y: improve accessibility --- src/lib/components/lemmy/comment/CommentActions.svelte | 1 + src/lib/components/lemmy/post/Post.svelte | 3 ++- src/lib/components/lemmy/post/PostActions.svelte | 2 +- src/lib/components/lemmy/post/PostLink.svelte | 2 +- 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/lib/components/lemmy/comment/CommentActions.svelte b/src/lib/components/lemmy/comment/CommentActions.svelte index 8b9f8120..c1869126 100644 --- a/src/lib/components/lemmy/comment/CommentActions.svelte +++ b/src/lib/components/lemmy/comment/CommentActions.svelte @@ -84,6 +84,7 @@ on:click={toggleOpen} size="sm" class="!p-1" + aria-label="Comment actions" > diff --git a/src/lib/components/lemmy/post/Post.svelte b/src/lib/components/lemmy/post/Post.svelte index f90771a9..0aa01e35 100644 --- a/src/lib/components/lemmy/post/Post.svelte +++ b/src/lib/components/lemmy/post/Post.svelte @@ -97,13 +97,14 @@ class="object-cover bg-slate-100 rounded-md max-h-[50vh] w-full" width={512} height={300} + alt="" /> {:else if post.post.thumbnail_url && post.post.url} {/if} diff --git a/src/lib/components/lemmy/post/PostActions.svelte b/src/lib/components/lemmy/post/PostActions.svelte index 1d4ead8a..65038684 100644 --- a/src/lib/components/lemmy/post/PostActions.svelte +++ b/src/lib/components/lemmy/post/PostActions.svelte @@ -106,7 +106,7 @@