Skip to content

Commit cbe25f4

Browse files
committed
fix: external arrow rtl flip on links
1 parent d15d2ff commit cbe25f4

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/components/ui/Link.tsx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export const BaseLink = forwardRef<HTMLAnchorElement, LinkProps>(function Link(
5050
ref
5151
) {
5252
const { asPath } = useRouter()
53-
const { flipForRtl } = useRtlFlip()
53+
const { twFlipForRtl } = useRtlFlip()
5454

5555
if (!href) {
5656
console.warn("Link component is missing href prop")
@@ -102,9 +102,10 @@ export const BaseLink = forwardRef<HTMLAnchorElement, LinkProps>(function Link(
102102
<VisuallyHidden>(opens in a new tab)</VisuallyHidden>
103103
{!hideArrow && (
104104
<RxExternalLink
105-
className={cn("-me-1 inline h-6 w-6 p-1 align-middle", {
106-
transform: flipForRtl,
107-
})}
105+
className={cn(
106+
"-me-1 inline h-6 w-6 p-1 align-middle",
107+
twFlipForRtl
108+
)}
108109
/>
109110
)}
110111
</a>

0 commit comments

Comments
 (0)