label icon buttons

This commit is contained in:
hippoz 2022-08-04 05:33:20 +03:00
parent dcef776d44
commit 662fceee57
Signed by: hippoz
GPG key ID: 7C52899193467641
3 changed files with 3 additions and 3 deletions

View file

@ -14,7 +14,7 @@
<div class="top-bar">
{#if !$showSidebar || getItem("ui:showSidebarToggle")}
<button class="icon-button menu-button" on:click="{ () => showSidebar.set(!showSidebar.value) }">
<button class="icon-button menu-button" on:click="{ () => showSidebar.set(!showSidebar.value) }" aria-label="Toggle sidebar">
<MenuIcon />
</button>
{/if}

View file

@ -51,7 +51,7 @@
<span class="author">{ message.author_username }</span>
<span class="message-content" class:pending={ message._isPending }>{ message.content }</span>
{#if userInfoStore.value && (message.author_id === userInfoStore.value.id || userInfoStore.value.is_superuser)}
<button class="icon-button icon-button-auto edit-message" on:click="{ () => overlayStore.open('editMessage', { message }) }">
<button class="icon-button icon-button-auto edit-message" on:click="{ () => overlayStore.open('editMessage', { message }) }" aria-label="Edit Message">
<MoreVerticalIcon />
</button>
{/if}

View file

@ -43,7 +43,7 @@
<span class="unread-indicator"></span>
{/if}
{#if $userInfoStore && (channel.owner_id === $userInfoStore.id || $userInfoStore.is_superuser)}
<button class="icon-button icon-button-auto" on:click|stopPropagation="{ () => overlayStore.open('editChannel', { channel }) }">
<button class="icon-button icon-button-auto" on:click|stopPropagation="{ () => overlayStore.open('editChannel', { channel }) }" aria-label="Edit Channel">
<MoreVerticalIcon />
</button>
{/if}