Skip to content

Commit d302e07

Browse files
committed
fix: hover error
1 parent 5d649fd commit d302e07

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/components/DocsNav.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ const CardLink = ({ docData, isPrev, contentNotTranslated }: CardLinkProps) => {
4646
<BaseLink
4747
href={docData.href}
4848
className={cn(
49-
"flex w-full items-start items-center rounded-sm border border-primary bg-background !no-underline",
49+
"group flex w-full items-center rounded-sm border border-primary bg-background !no-underline",
5050
isPrev ? "justify-start" : "justify-end",
51-
"hover:border-primary-hover hover:[&_.btn-txt]:text-primary-hover hover:[&_svg]:fill-primary-hover"
51+
"hover:border-primary-hover"
5252
)}
5353
rel={isPrev ? "prev" : "next"}
5454
onClick={() => {
@@ -64,13 +64,13 @@ const CardLink = ({ docData, isPrev, contentNotTranslated }: CardLinkProps) => {
6464
style={{ transform: contentNotTranslated ? undefined : flipForRtl }}
6565
>
6666
{isPrev ? (
67-
<FaChevronLeft className="fill-primary text-xl" />
67+
<FaChevronLeft className="text-xl group-hover:fill-primary-hover" />
6868
) : (
69-
<FaChevronRight className="fill-primary text-xl" />
69+
<FaChevronRight className="text-xl group-hover:fill-primary-hover" />
7070
)}
7171
</div>
7272
<TextDiv className={cn(isPrev ? "ps-0" : "pe-0 text-end")}>
73-
<Text className="btn-txt !m-0 text-lg text-primary">
73+
<Text className="btn-txt !m-0 text-lg text-primary group-hover:text-primary-hover">
7474
{t(isPrev ? "previous" : "next")}
7575
</Text>
7676
<Text className="!mb-0 text-sm no-underline">{t(docData.id)}</Text>

0 commit comments

Comments
 (0)