fix: input and toast font style use user custom font (#1322)

* fix: toast font style follow settings

* feat: input font style follow settings

---------

Co-authored-by: Innei <i@innei.in>
This commit is contained in:
huanfei 2024-11-04 14:50:59 +08:00 committed by GitHub
parent 7b9e9ad6c6
commit c40becff78
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -23,7 +23,7 @@ export const Input = forwardRef<
"border border-border",
"placeholder:text-theme-placeholder-text dark:bg-zinc-700/[0.15] dark:text-zinc-200",
"hover:border-accent/60",
props.type === "password" ? "font-mono placeholder:font-sans" : "font-sans",
props.type === "password" && "font-mono placeholder:font-sans",
"w-full",
className,
)}

View File

@ -10,7 +10,7 @@ export const Toaster = ({ ...props }: ToasterProps) => (
<Sonner
theme={useIsDark() ? "dark" : "light"}
toastOptions={{
className: tw`pointer-events-auto group`,
className: tw`pointer-events-auto group font-theme`,
classNames: {
content: "min-w-0",
icon: tw`self-start translate-y-[2px]`,