Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

Rename link to bar-link class and adjust the hover style to be consistent with outline hover style

Tianzhou Chen954955474b0e
diff --git a/frontend/src/assets/css/tailwind.css b/frontend/src/assets/css/tailwind.css
index 3bf8551bc9..4ed4c268a2 100644
--- a/frontend/src/assets/css/tailwind.css
+++ b/frontend/src/assets/css/tailwind.css
@@ -114,8 +114,8 @@
@apply text-control cursor-pointer w-full group items-center hover:bg-link-hover text-sm leading-5 focus:outline-none select-none;
}
-.link {
- @apply text-main hover:underline focus:outline-none;
+.bar-link {
+ @apply text-main hover:bg-link-hover focus:outline-none;
}
.accent-link {
diff --git a/frontend/src/views/DashboardHeader.vue b/frontend/src/views/DashboardHeader.vue
index 3fb40408ec..9968d301e1 100644
--- a/frontend/src/views/DashboardHeader.vue
+++ b/frontend/src/views/DashboardHeader.vue
@@ -8,14 +8,16 @@
</div>
<div class="hidden md:block">
<div class="ml-4 flex items-baseline space-x-4">
- <router-link to="/instance" class="link px-2 py-2 rounded-md"
+ <router-link to="/instance" class="bar-link px-2 py-2 rounded-md"
>Instance</router-link
>
- <router-link to="/environment" class="link px-2 py-2 rounded-md"
+ <router-link to="/environment" class="bar-link px-2 py-2 rounded-md"
>Environment</router-link
>
- <router-link to="/setting/member" class="link px-2 py-2 rounded-md"
+ <router-link
+ to="/setting/member"
+ class="bar-link px-2 py-2 rounded-md"
>Members</router-link
>
</div>
@@ -86,15 +88,15 @@
<div v-if="state.showMobileMenu" class="block md:hidden">
<div class="px-2 pt-2 pb-3 space-y-1 sm:px-3">
<!-- Current: "bg-gray-900 text-white", Default: "text-gray-300 hover:bg-gray-700 hover:text-white" -->
- <router-link to="/" class="link rounded-md block px-3 py-2"
+ <router-link to="/" class="bar-link rounded-md block px-3 py-2"
>Dashboard</router-link
>
- <router-link to="/instance" class="link rounded-md block px-3 py-2"
+ <router-link to="/instance" class="bar-link rounded-md block px-3 py-2"
>Instance</router-link
>
- <router-link to="/environment" class="link rounded-md block px-3 py-2"
+ <router-link to="/environment" class="bar-link rounded-md block px-3 py-2"
>Environment</router-link
>
</div>