fix: Correctly display active tab in login/create account section
This commit is contained in:
1 parent
516c24cfaa
commit
5eb6024a1b
1 file changed
+5
-5
@@ -3,14 +3,14 @@
|
||||
<!-- Tabs Navigation -->
|
||||
<div class="mb-4 border-b border-gray-200">
|
||||
<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
|
||||
[&:not(:target):not(:has(~:target))]:border-primary [&:not(:target):not(:has(~:target))]:text-primary
|
||||
[&:target]:border-primary [&:target]:text-primary
|
||||
<a href="#tab-login" class="whitespace-nowrap py-4 px-1 font-medium text-sm
|
||||
[&:not(:target):not(:has(~:target))]:border-b-2 [&:not(:target):not(:has(~:target))]:border-primary [&:not(:target):not(:has(~: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">
|
||||
Login
|
||||
</a>
|
||||
<a href="#tab-create-account" class="whitespace-nowrap py-4 px-1 border-b-2 font-medium text-sm
|
||||
[&:target]:border-primary [&:target]:text-primary
|
||||
<a href="#tab-create-account" class="whitespace-nowrap py-4 px-1 font-medium text-sm
|
||||
[&: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">
|
||||
Create Account
|
||||
</a>
|
||||
|
||||
Reference in new issue
Block a user