mirror of
https://github.com/shadcn-ui/ui.git
synced 2026-02-09 02:49:29 +08:00
fix(rtl): use logical margin for password link in RTL examples
Change ml-auto to ms-auto (margin-inline-start) so the Forgot your password link aligns correctly in both LTR and RTL layouts. Fixes #9515
This commit is contained in:
@@ -93,7 +93,7 @@ export function CardRtl() {
|
||||
<Label htmlFor="password-rtl">{t.password}</Label>
|
||||
<a
|
||||
href="#"
|
||||
className="ml-auto inline-block text-sm underline-offset-4 hover:underline"
|
||||
className="ms-auto inline-block text-sm underline-offset-4 hover:underline"
|
||||
>
|
||||
{t.forgotPassword}
|
||||
</a>
|
||||
|
||||
@@ -93,7 +93,7 @@ export function CardRtl() {
|
||||
<Label htmlFor="password-rtl">{t.password}</Label>
|
||||
<a
|
||||
href="#"
|
||||
className="ml-auto inline-block text-sm underline-offset-4 hover:underline"
|
||||
className="ms-auto inline-block text-sm underline-offset-4 hover:underline"
|
||||
>
|
||||
{t.forgotPassword}
|
||||
</a>
|
||||
|
||||
Reference in New Issue
Block a user