docs: switch to aria-current in active links page (#2019)
This commit is contained in:
@@ -54,7 +54,7 @@ export function SidebarCategory(props: {
|
||||
<li class="my-2 block">
|
||||
<a
|
||||
href={href}
|
||||
class="text-gray-900 hover:text-gray-600 data-[current]:text-green-700 data-[current]:hover:underline font-bold"
|
||||
class="text-gray-900 hover:text-gray-600 aria-[current]:text-green-700 aria-[current]:hover:underline font-bold"
|
||||
>
|
||||
{title}
|
||||
</a>
|
||||
@@ -78,7 +78,7 @@ export function SidebarEntry(props: {
|
||||
<li class="py-[1px]">
|
||||
<a
|
||||
href={href}
|
||||
class="data-[current]:text-green-700 data-[current]:border-green-600 data-[current]:bg-green-50 border-l-4 border-transparent px-4 py-0.5 transition-colors hover:text-green-500 font-normal block"
|
||||
class="aria-[current]:text-green-700 aria-[current]:border-green-600 aria-[current]:bg-green-50 border-l-4 border-transparent px-4 py-0.5 transition-colors hover:text-green-500 font-normal block"
|
||||
>
|
||||
{title}
|
||||
</a>
|
||||
|
||||
@@ -31,7 +31,7 @@ export default function NavigationBar(
|
||||
href={item.href}
|
||||
class={`p-1 sm:p-2 ${
|
||||
isHome ? "text-green-900" : "text-gray-600"
|
||||
} hover:underline data-[current]:font-bold data-[ancestor]:font-bold`}
|
||||
} hover:underline aria-[current]:font-bold`}
|
||||
>
|
||||
{item.name}
|
||||
</a>
|
||||
|
||||
Reference in New Issue
Block a user