Skip to content

Commit 29c50a0

Browse files
committed
fix: rtl AiOutlineArrowRight
1 parent b86fd64 commit 29c50a0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/components/DocLink.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export type DocLinkProps = {
1515
}
1616

1717
const DocLink = ({ href, children, isExternal = false }: DocLinkProps) => {
18-
const { flipForRtl } = useRtlFlip()
18+
const { isRtl } = useRtlFlip()
1919

2020
return (
2121
<BaseLink
@@ -41,7 +41,8 @@ const DocLink = ({ href, children, isExternal = false }: DocLinkProps) => {
4141
"mx-6 h-6 w-6 self-center",
4242
"transition-transform duration-100 group-hover:scale-[1.2] group-hover:fill-primary",
4343
isExternal ? "-rotate-45" : "rotate-0",
44-
flipForRtl && isExternal ? "-rotate-[135deg]" : ""
44+
isRtl && isExternal ? "-rotate-[135deg]" : "",
45+
isRtl ? "-rotate-[180deg]" : ""
4546
)}
4647
/>
4748
</Flex>

0 commit comments

Comments
 (0)