fix: Correctly display active tab in login/create account section

This commit is contained in:
Kerby Martino (aider) committed 2025-05-03 15:51:19 +08:00
1 parent 516c24cfaa
commit 5eb6024a1b
1 file changed
+5 -5
+5 -5
View File
@@ -3,14 +3,14 @@
<!-- Tabs Navigation --> <!-- Tabs Navigation -->
<div class="mb-4 border-b border-gray-200"> <div class="mb-4 border-b border-gray-200">
<nav class="-mb-px flex space-x-8" aria-label="Tabs"> <nav class="-mb-px flex space-x-8" aria-label="Tabs">
<a href="#tab-login" class="whitespace-nowrap py-4 px-1 border-b-2 font-medium text-sm <a href="#tab-login" class="whitespace-nowrap py-4 px-1 font-medium text-sm
[&:not(:target):not(:has(~:target))]:border-primary [&:not(:target):not(:has(~:target))]:text-primary [&:not(:target):not(:has(~:target))]:border-b-2 [&:not(:target):not(:has(~:target))]:border-primary [&:not(:target):not(:has(~:target))]:text-primary
[&:target]:border-primary [&:target]:text-primary [&:target]:border-b-2 [&:target]:border-primary [&:target]:text-primary
[&:not(:target)]:border-transparent [&:not(:target)]:text-gray-500 [&:not(:target)]:hover:text-gray-700 [&:not(:target)]:hover:border-gray-300"> [&:not(:target)]:border-transparent [&:not(:target)]:text-gray-500 [&:not(:target)]:hover:text-gray-700 [&:not(:target)]:hover:border-gray-300">
Login Login
</a> </a>
<a href="#tab-create-account" class="whitespace-nowrap py-4 px-1 border-b-2 font-medium text-sm <a href="#tab-create-account" class="whitespace-nowrap py-4 px-1 font-medium text-sm
[&:target]:border-primary [&:target]:text-primary [&:target]:border-b-2 [&:target]:border-primary [&:target]:text-primary
[&:not(:target)]:border-transparent [&:not(:target)]:text-gray-500 [&:not(:target)]:hover:text-gray-700 [&:not(:target)]:hover:border-gray-300"> [&:not(:target)]:border-transparent [&:not(:target)]:text-gray-500 [&:not(:target)]:hover:text-gray-700 [&:not(:target)]:hover:border-gray-300">
Create Account Create Account
</a> </a>