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 @@ " />