docs: enhanced sidebar context (#4165)

This commit is contained in:
Shahed Nasser
2023-05-24 17:40:13 +03:00
committed by GitHub
parent 0a35f21af7
commit e281469eb8
8 changed files with 124 additions and 77 deletions
+3 -2
View File
@@ -3,6 +3,7 @@ import BorderedIcon from "../BorderedIcon"
import clsx from "clsx"
import Badge from "../Badge"
import { IconProps } from "@site/src/theme/Icon/index"
import Link from "@docusaurus/Link"
type LargeCardProps = {
Icon: React.FC<IconProps>
@@ -78,13 +79,13 @@ const LargeCard: React.FC<LargeCardProps> = ({
{children}
</div>
</div>
<a
<Link
href={href}
className={clsx(
"tw-absolute tw-top-0 tw-left-0 tw-w-full tw-h-full tw-z-[4] tw-rounded",
isSoon && "group-hover:tw-pointer-events-none"
)}
></a>
></Link>
</article>
)
}