Skip to content

Commit 4a2fc64

Browse files
committed
fix: twFlipForRtl horizontal flip class
1 parent 9671459 commit 4a2fc64

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/hooks/useRtlFlip.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { isLangRightToLeft } from "@/lib/utils/translations"
77
type UseDirection = {
88
/** @deprecated */
99
flipForRtl: "scaleX(-1)" | undefined // transform (deprecated)
10-
twFlipForRtl: "-scale-x-1" | "" // className
10+
twFlipForRtl: "-scale-x-100" | "" // className
1111
isRtl: boolean
1212
direction: "ltr" | "rtl"
1313
}
@@ -22,7 +22,7 @@ export const useRtlFlip = (): UseDirection => {
2222
const isRtl = isLangRightToLeft(locale as Lang)
2323
return {
2424
flipForRtl: isRtl ? "scaleX(-1)" : undefined, // transform (deprecated)
25-
twFlipForRtl: isRtl ? "-scale-x-1" : "", // className (preferred)
25+
twFlipForRtl: isRtl ? "-scale-x-100" : "", // className (preferred)
2626
isRtl,
2727
direction: isRtl ? "rtl" : "ltr",
2828
}

0 commit comments

Comments
 (0)