fix(app): complete shared RTL primitives (#40388)
Co-authored-by: Luke Parker <10430890+Hona@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
868524c102
commit
3ef515f3a1
@@ -1,4 +1,5 @@
|
||||
import { Toaster, toast, type ToasterProps } from "solid-sonner"
|
||||
import { isRTL } from "@kobalte/core/i18n"
|
||||
import type { ComponentProps, JSX } from "solid-js"
|
||||
import { createContext, onCleanup, onMount, splitProps, useContext } from "solid-js"
|
||||
import { Portal } from "solid-js/web"
|
||||
@@ -46,8 +47,8 @@ function ToastV2Region(props: ToastV2RegionProps) {
|
||||
return (
|
||||
<Portal>
|
||||
<Toaster
|
||||
position="bottom-right"
|
||||
offset={{ right: 32, bottom: 48 }}
|
||||
position={isRTL(i18n.locale()) ? "bottom-left" : "bottom-right"}
|
||||
offset={isRTL(i18n.locale()) ? { left: 32, bottom: 48 } : { right: 32, bottom: 48 }}
|
||||
mobileOffset={16}
|
||||
gap={12}
|
||||
duration={5000}
|
||||
|
||||
Reference in New Issue
Block a user