fix: replace ltr and rtl with new ms and me (#8138)

Co-authored-by: Peer Richelsen <[email protected]>
Co-authored-by: Peer Richelsen <[email protected]>
This commit is contained in:
authored and GitHub committed 2023-04-09 11:13:57 +02:00
1 parent d416386d7b
commit e1096620e6
31 files changed
+165 -1729

No files matched your search

+1 -1
View File
@@ -238,7 +238,7 @@ export const Button = forwardRef<HTMLAnchorElement | HTMLButtonElement, ButtonPr
<>
{variant === "fab" ? (
<>
<EndIcon className="-mr-1 hidden h-5 w-5 ltr:ml-2 rtl:-ml-1 rtl:mr-2 md:inline" />
<EndIcon className="ms-2 me-2 -mr-1 hidden h-5 w-5 md:inline" />
<FiPlus className="inline h-6 w-6 md:hidden" />
</>
) : (
@@ -56,7 +56,7 @@ const Switch = (
<Label.Root
htmlFor={id}
className={cx(
"text-emphasis align-text-top text-sm font-medium ltr:ml-2 rtl:mr-2",
"text-emphasis ms-2 align-text-top text-sm font-medium",
primitiveProps.disabled ? "cursor-not-allowed opacity-25" : "cursor-pointer "
)}>
{label}
+1 -1
View File
@@ -30,7 +30,7 @@ export const Label = (props: JSX.IntrinsicElements["label"] & { disabled?: boole
<label
{...props}
className={classNames(
"text-emphasis w-full text-sm font-medium leading-5 ltr:ml-2 rtl:mr-2",
"text-emphasis ms-2 w-full text-sm font-medium leading-5",
props.disabled && "text-subtle"
)}
/>