diff --git a/assets/scss/styles.scss b/assets/scss/styles.scss index 5a6fbd400..905447ef2 100644 --- a/assets/scss/styles.scss +++ b/assets/scss/styles.scss @@ -183,19 +183,21 @@ hr { @apply w-full; @apply px-4 py-2; @apply bg-primary; - @apply truncate; @apply rounded; @apply text-secondaryDark; @apply border border-divider; - @apply transition; - @apply focus:(outline-none border-accent); - @apply disabled:cursor-not-allowed; + @apply focus-visible:border-accent; } input, select, textarea, button { + @apply focus:outline-none; + @apply truncate; + @apply transition; + @apply disabled:cursor-not-allowed; + font-size: var(--body-font-size); line-height: var(--body-line-height); } @@ -358,6 +360,7 @@ input[type="checkbox"] { @apply ml-auto; @apply sm:ml-8; @apply transition; + @apply rounded; @apply text-current; @apply normal-case; @apply hover:(bg-opacity-20 no-underline); diff --git a/components/app/Footer.vue b/components/app/Footer.vue index 399a274da..859847d80 100644 --- a/components/app/Footer.vue +++ b/components/app/Footer.vue @@ -16,7 +16,8 @@ } ${$t('layout.zen_mode')}`" :icon="ZEN_MODE ? 'fullscreen_exit' : 'fullscreen'" :class="{ - '!text-accent focus:text-accent hover:text-accent': ZEN_MODE, + '!text-accent !focus-visible:text-accentDark !hover:text-accentDark': + ZEN_MODE, }" @click.native="ZEN_MODE = !ZEN_MODE" /> diff --git a/components/app/Search.vue b/components/app/Search.vue index 5b21f6dd1..0b5f2d51b 100644 --- a/components/app/Search.vue +++ b/components/app/Search.vue @@ -16,8 +16,6 @@ px-4 pt-2 pb-6 - truncate - focus:outline-none " />
diff --git a/components/app/Sidenav.vue b/components/app/Sidenav.vue index aa94cde51..3cd980ad4 100644 --- a/components/app/Sidenav.vue +++ b/components/app/Sidenav.vue @@ -123,9 +123,8 @@ export default defineComponent({ @apply flex flex-col flex-1; @apply items-center; @apply justify-center; - @apply transition; @apply hover:(bg-primaryDark text-secondaryDark); - @apply focus:text-secondaryDark; + @apply focus-visible:text-secondaryDark; &::after { @apply absolute; diff --git a/components/button/Primary.vue b/components/button/Primary.vue index d029f41e5..851b575d4 100644 --- a/components/button/Primary.vue +++ b/components/button/Primary.vue @@ -6,7 +6,6 @@ class=" font-bold py-2 - transition inline-flex items-center justify-center @@ -15,8 +14,8 @@ " :class="[ color - ? `text-${color}-800 bg-${color}-200 hover:(text-${color}-900 bg-${color}-300) focus:(text-${color}-900 bg-${color}-300)` - : `text-accentContrast bg-accent hover:bg-accentDark focus:bg-accentDark`, + ? `text-${color}-800 bg-${color}-200 hover:(text-${color}-900 bg-${color}-300) focus-visible:(text-${color}-900 bg-${color}-300)` + : `text-accentContrast bg-accent hover:bg-accentDark focus-visible:bg-accentDark`, label ? 'px-4' : 'px-2', rounded ? 'rounded-full' : 'rounded', { 'opacity-75 cursor-not-allowed': disabled }, @@ -28,7 +27,7 @@ gradient, }, { - 'border border-accent hover:border-accentDark focus:border-accentDark': + 'border border-accent hover:border-accentDark focus-visible:border-accentDark': outline, }, ]" diff --git a/components/button/Secondary.vue b/components/button/Secondary.vue index f7f157442..f6e4259ee 100644 --- a/components/button/Secondary.vue +++ b/components/button/Secondary.vue @@ -6,7 +6,6 @@ class=" font-medium py-2 - transition inline-flex items-center justify-center @@ -18,14 +17,14 @@ :class="[ color ? `text-${color}-500 hover:(text-${color}-600 text-${color}-600)` - : 'text-secondary hover:text-secondaryDark focus:text-secondaryDark', + : 'text-secondary hover:text-secondaryDark focus-visible:text-secondaryDark', label ? 'rounded px-4' : 'px-2', { 'rounded-full': rounded }, { 'opacity-75 cursor-not-allowed': disabled }, { 'flex-row-reverse': reverse }, { 'px-6 py-4 text-lg': large }, { - 'border border-divider hover:border-dividerDark focus:border-dividerDark': + 'border border-divider hover:border-dividerDark focus-visible:border-dividerDark': outline, }, ]" diff --git a/components/collections/ChooseType.vue b/components/collections/ChooseType.vue index f2832f56a..53c67667a 100644 --- a/components/collections/ChooseType.vue +++ b/components/collections/ChooseType.vue @@ -25,7 +25,6 @@ py-2 px-4 appearance-none - focus:outline-none " @change="updateSelectedTeam(myTeams[$event.target.value])" > diff --git a/components/collections/graphql/Collection.vue b/components/collections/graphql/Collection.vue index 9d2bd955c..ccd94c56c 100644 --- a/components/collections/graphql/Collection.vue +++ b/components/collections/graphql/Collection.vue @@ -77,7 +77,7 @@ " /> - {{ isSelected ? "check_circle" : "description" }} + {{ isSelected ? "check_circle_outline" : "description" }}
diff --git a/components/collections/index.vue b/components/collections/index.vue index 34db23399..a0e7419e2 100644 --- a/components/collections/index.vue +++ b/components/collections/index.vue @@ -20,8 +20,6 @@ py-2 pr-2 pl-9 - truncate - focus:outline-none " /> diff --git a/components/collections/my/Collection.vue b/components/collections/my/Collection.vue index 07c93ec05..0eb69ec02 100644 --- a/components/collections/my/Collection.vue +++ b/components/collections/my/Collection.vue @@ -36,7 +36,7 @@ v-if="doc && !selected" v-tippy="{ theme: 'tooltip' }" :title="$t('import.title')" - icon="check_box_outline_blank" + icon="radio_button_unchecked" color="green" @click.native="$emit('select-collection')" /> @@ -44,7 +44,7 @@ v-if="doc && selected" v-tippy="{ theme: 'tooltip' }" :title="$t('delete')" - icon="check_box" + icon="check_circle_outline" color="green" @click.native="$emit('unselect-collection')" /> @@ -96,7 +96,7 @@ " /> - check_circle + check_circle_outline {{ request.method }} @@ -86,7 +86,7 @@ " /> @@ -36,7 +36,7 @@ v-if="doc && selected" v-tippy="{ theme: 'tooltip' }" :title="$t('delete')" - icon="check_box" + icon="check_circle_outline" color="green" @click.native="$emit('unselect-collection')" /> @@ -92,7 +92,7 @@ /> - check_circle + check_circle_outline {{ request.method }} @@ -79,7 +79,7 @@ " /> @@ -74,7 +60,7 @@ id="variable" v-tippy="{ theme: 'tooltip' }" :title="$t('delete')" - icon="delete" + icon="remove_circle_outline" color="red" @click.native="removeEnvironmentVariable(index)" /> diff --git a/components/environments/Environment.vue b/components/environments/Environment.vue index 01dfec4f1..1f00f39d1 100644 --- a/components/environments/Environment.vue +++ b/components/environments/Environment.vue @@ -40,7 +40,7 @@ " /> diff --git a/components/graphql/Request.vue b/components/graphql/Request.vue index e84a2c173..f74ba268d 100644 --- a/components/graphql/Request.vue +++ b/components/graphql/Request.vue @@ -15,10 +15,7 @@ w-full py-2 px-4 - transition - truncate - focus:(border-accent - outline-none) + focus-visible:border-accent " :placeholder="$t('url')" @keyup.enter="onConnectClick" diff --git a/components/graphql/RequestOptions.vue b/components/graphql/RequestOptions.vue index 675313681..206f67f0c 100644 --- a/components/graphql/RequestOptions.vue +++ b/components/graphql/RequestOptions.vue @@ -163,7 +163,7 @@ bg-primaryLight flex flex-1 - py-1 + py-1 px-4 truncate focus:outline-none @@ -177,14 +177,7 @@ " /> diff --git a/components/graphql/Sidebar.vue b/components/graphql/Sidebar.vue index 10f7601be..b2f1bad02 100644 --- a/components/graphql/Sidebar.vue +++ b/components/graphql/Sidebar.vue @@ -17,16 +17,7 @@ v-model="graphqlFieldsFilterText" type="search" :placeholder="$t('search')" - class=" - bg-primaryLight - flex - w-full - py-2 - pr-2 - pl-9 - truncate - focus:outline-none - " + class="bg-primaryLight flex w-full py-2 pr-2 pl-9" />
diff --git a/components/history/graphql/Card.vue b/components/history/graphql/Card.vue index a5bba2443..1b78883a3 100644 --- a/components/history/graphql/Card.vue +++ b/components/history/graphql/Card.vue @@ -21,7 +21,7 @@
diff --git a/components/history/rest/Card.vue b/components/history/rest/Card.vue index 4372c5888..a4bd0fe24 100644 --- a/components/history/rest/Card.vue +++ b/components/history/rest/Card.vue @@ -29,7 +29,7 @@