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