refactor(ui): a11y improvements

This commit is contained in:
liyasthomas
2021-08-06 21:40:26 +05:30
parent 3a96eb003b
commit 346ece94b7
31 changed files with 59 additions and 155 deletions

View File

@@ -26,7 +26,6 @@
<tippy
ref="options"
interactive
tabindex="-1"
trigger="click"
theme="popover"
arrow
@@ -97,7 +96,8 @@
v-tippy="{ theme: 'tooltip' }"
:title="RIGHT_SIDEBAR ? $t('hide.sidebar') : $t('show.sidebar')"
icon="menu_open"
:class="['transform rotate-180', { 'rotate-0': !RIGHT_SIDEBAR }]"
class="transform rotate-180"
:class="{ 'rotate-0': !RIGHT_SIDEBAR }"
@click.native="toggleSetting('RIGHT_SIDEBAR')"
/>
</div>

View File

@@ -15,21 +15,13 @@
icon="offline_bolt"
@click.native="showInstallPrompt()"
/>
<span tabindex="-1">
<ButtonPrimary
v-if="currentUser === null"
label="Login"
@click.native="showLogin = true"
/>
<tippy
v-else
ref="user"
interactive
tabindex="-1"
trigger="click"
theme="popover"
arrow
>
<ButtonPrimary
v-if="currentUser === null"
label="Login"
@click.native="showLogin = true"
/>
<span v-else>
<tippy ref="user" interactive trigger="click" theme="popover" arrow>
<template #trigger>
<ProfilePicture
v-if="currentUser.photoURL"

View File

@@ -63,6 +63,7 @@ export default {
@apply justify-center;
@apply transition;
@apply hover:(bg-primaryDark text-secondaryDark);
@apply focus-visible:(ring ring-inset ring-accent);
.material-icons,
.svg-icons {