Skip to content

Commit

Permalink
[all]: Use focus-visible instead of focus for focus ring
Browse files Browse the repository at this point in the history
  • Loading branch information
ThrRip committed Apr 10, 2024
1 parent 7068423 commit de64c6e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
24 changes: 12 additions & 12 deletions packages/admin/app.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@
<NuxtLink
to="/"
title="首页"
class="aspect-square flex flex-row justify-center items-center h-14
bg-blue hover:bg-blue-a rounded-xl focus:outline outline-2 outline-offset-3 outline-blue-a
transition duration-300 active:scale-95"
class="aspect-square flex flex-row justify-center items-center h-14 bg-blue hover:bg-blue-a
rounded-xl focus-visible:outline outline-2 outline-offset-3 outline-blue-a transition duration-300
active:scale-95"
:class="{ 'bg-blue-a': route.path === '/' }"
@click="viewToggleFullNavigationBar(false)"
>
Expand All @@ -37,9 +37,9 @@
<section class="z-50 flex flex-col max-lg:landscape:gap-y-2 gap-y-4 items-end">
<NuxtLink
to="/playlist"
class="overflow-clip flex flex-row gap-x-1 items-center px-2 h-14 w-full max-w-full
bg-blue hover:bg-blue-a rounded-xl focus:outline outline-2 outline-offset-3 outline-blue-a
transition-all duration-300 active:scale-95"
class="overflow-clip flex flex-row gap-x-1 items-center px-2 h-14 w-full max-w-full bg-blue hover:bg-blue-a
rounded-xl focus-visible:outline outline-2 outline-offset-3 outline-blue-a transition-all duration-300
active:scale-95"
:class="{
'!px-0 !max-w-[3.5rem]': !viewShowFullNavigationBar,
'bg-blue-a': route.path === '/playlist'
Expand All @@ -56,9 +56,9 @@
</section>
<section class="z-50 flex flex-row gap-x-12 justify-between">
<button
class="flex flex-row gap-x-1 items-center px-2 w-full h-14
bg-blue hover:bg-blue-a rounded-xl focus:outline outline-2 outline-offset-3 outline-blue-a
transition duration-300 active:scale-95"
class="flex flex-row gap-x-1 items-center px-2 w-full h-14 bg-blue hover:bg-blue-a
rounded-xl focus-visible:outline outline-2 outline-offset-3 outline-blue-a transition duration-300
active:scale-95"
@click="backendLogout"
>
<ClientOnly>
Expand Down Expand Up @@ -91,9 +91,9 @@
</button>
<button
:title="viewShowFullNavigationBar ? '收起导航栏' : '展开导航栏'"
class="aspect-square flex flex-row justify-center items-center h-14
bg-blue hover:bg-blue-a rounded-xl focus:outline outline-2 outline-offset-3 outline-blue-a
transition duration-300 active:scale-95"
class="aspect-square flex flex-row justify-center items-center h-14 bg-blue hover:bg-blue-a
rounded-xl focus-visible:outline outline-2 outline-offset-3 outline-blue-a transition duration-300
active:scale-95"
@click="viewToggleFullNavigationBar()"
>
<font-awesome-icon
Expand Down
6 changes: 3 additions & 3 deletions packages/home/app.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@
</h1>
<div
class="flex flex-col max-xl:landscape:gap-y-1 gap-y-4
*:flex *:flex-row *:gap-x-2 *:justify-between *:items-center
max-xl:landscape:*:px-1.5 *:px-2.5 *:w-54 max-xl:landscape:*:h-10 *:h-12
*:text-white *:bg-blue hover:*:bg-blue-a focus:*:outline *:outline-2 *:outline-offset-3 *:outline-blue-a *:rounded-xl
*:flex *:flex-row *:gap-x-2 *:justify-between *:items-center max-xl:landscape:*:px-1.5 *:px-2.5
*:w-54 max-xl:landscape:*:h-10 *:h-12 *:text-white *:bg-blue hover:*:bg-blue-a
*:rounded-xl focus-visible:*:outline *:outline-2 *:outline-blue-a *:outline-offset-3
*:transition active:*:scale-95"
>
<NuxtLink
Expand Down

0 comments on commit de64c6e

Please sign in to comment.