From 346ece94b77527c928834a7eb6d672072ad4499f Mon Sep 17 00:00:00 2001 From: liyasthomas Date: Fri, 6 Aug 2021 21:40:26 +0530 Subject: [PATCH] refactor(ui): a11y improvements --- assets/scss/styles.scss | 25 ++++++------------- components/app/Footer.vue | 4 +-- components/app/Header.vue | 22 ++++++---------- components/app/Sidenav.vue | 1 + components/button/Primary.vue | 4 +-- components/button/Secondary.vue | 4 +-- components/collections/ImportExport.vue | 1 - components/collections/graphql/Collection.vue | 9 +------ components/collections/graphql/Folder.vue | 9 +------ .../collections/graphql/ImportExport.vue | 9 +------ components/collections/graphql/Request.vue | 9 +------ components/collections/my/Collection.vue | 9 +------ components/collections/my/Folder.vue | 9 +------ components/collections/my/Request.vue | 9 +------ components/collections/teams/Collection.vue | 1 - components/collections/teams/Folder.vue | 1 - components/collections/teams/Request.vue | 1 - components/environments/Environment.vue | 9 +------ components/environments/ImportExport.vue | 9 +------ components/firebase/Login.vue | 15 ++++++++--- components/http/Body.vue | 1 - components/http/CodegenModal.vue | 1 - components/http/Request.vue | 3 --- components/profile/Picture.vue | 15 ++++++++--- components/smart/AceEditor.vue | 1 - components/smart/ChangeLanguage.vue | 9 +------ components/smart/FontSizePicker.vue | 9 +------ components/smart/Tabs.vue | 2 +- components/teams/Edit.vue | 2 -- components/teams/Team.vue | 9 +------ plugins/v-tippy.js | 2 ++ 31 files changed, 59 insertions(+), 155 deletions(-) diff --git a/assets/scss/styles.scss b/assets/scss/styles.scss index 6fb7131ed..9101d08f6 100644 --- a/assets/scss/styles.scss +++ b/assets/scss/styles.scss @@ -94,11 +94,12 @@ a { &.link { @apply items-center; - @apply px-2 py-1; - @apply -mx-2 -my-1; + @apply px-1 py-0.5; + @apply -mx-1 -my-0.5; @apply text-accent; + @apply rounded; @apply hover:text-accentDark; - @apply focus-visible:(ring ring-inset ring-accent); + @apply focus-visible:(ring ring-accent); } } @@ -134,22 +135,10 @@ a { font-size: var(--body-font-size); line-height: var(--body-line-height); - } - &[x-placement^="top"] .tippy-tooltip .tippy-arrow { - @apply border-t-popover; - } - - &[x-placement^="bottom"] .tippy-tooltip .tippy-arrow { - @apply border-b-popover; - } - - &[x-placement^="left"] .tippy-tooltip .tippy-arrow { - @apply border-l-popover; - } - - &[x-placement^="right"] .tippy-tooltip .tippy-arrow { - @apply border-r-popover; + .tippy-roundarrow svg { + @apply fill-popover; + } } } diff --git a/components/app/Footer.vue b/components/app/Footer.vue index 43c1a37f1..249358235 100644 --- a/components/app/Footer.vue +++ b/components/app/Footer.vue @@ -26,7 +26,6 @@ diff --git a/components/app/Header.vue b/components/app/Header.vue index 7e1e22755..d5925e796 100644 --- a/components/app/Header.vue +++ b/components/app/Header.vue @@ -15,21 +15,13 @@ icon="offline_bolt" @click.native="showInstallPrompt()" /> - - - + + +