a11y: improve accessibility

This commit is contained in:
Xyphyn committed 2023-07-29 19:59:55 -07:00
1 parent 5847a507fd
commit e1ac96def3
4 files changed
+5 -3

No files matched your search

@@ -84,6 +84,7 @@
on:click={toggleOpen}
size="sm"
class="!p-1"
aria-label="Comment actions"
>
<Icon src={EllipsisHorizontal} width={16} height={16} mini slot="icon" />
</Button>
+2 -1
View File
@@ -97,13 +97,14 @@
class="object-cover bg-slate-100 rounded-md max-h-[50vh] w-full"
width={512}
height={300}
alt=""
/>
</picture>
</div>
{:else if post.post.thumbnail_url && post.post.url}
<PostLink
url={post.post.url}
thumbnail_url={post.post.thumbnail_url}
thumbnail_url="{post.post.thumbnail_url}?format=webp&thumbnail=512"
nsfw={post.post.nsfw}
/>
{/if}
@@ -106,7 +106,7 @@
<Menu alignment="bottom-right" class="overflow-auto" let:toggleOpen>
<Button
slot="button"
label="Post actions"
aria-label="Post actions"
on:click={toggleOpen}
class="!p-1.5 dark:text-zinc-400 text-slate-500 hover:text-inherit"
color="secondary"
@@ -7,12 +7,12 @@
</script>
<a href={url} class="self-start relative group" class:blur-3xl={nsfw}>
<!-- svelte-ignore a11y-missing-attribute -->
<img
src={thumbnail_url}
class="rounded-md w-[500px] aspect-video object-cover bg-slate-200 dark:bg-zinc-800"
width={600}
height={400}
alt=""
/>
<span
class="w-full px-4 py-1.5 overflow-hidden whitespace-nowrap text-ellipsis