Skip to content

Commit

Permalink
Update Textarea.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
severinlandolt committed Oct 26, 2023
1 parent 21cf092 commit 062c24a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components/input-elements/Textarea/Textarea.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,13 @@ const Textarea = React.forwardRef<HTMLTextAreaElement, TextareaProps>((props, re
placeholder={placeholder}
disabled={disabled}
className={tremorTwMerge(
makeTextareaClassName("Textarea"), //@sev
makeTextareaClassName("Textarea"),
// common
"w-full flex items-center outline-none rounded-tremor-default px-3 py-2 text-sm",
// light
"shadow-tremor-input text-rose-500",
"shadow-tremor-input",
// dark
"dark:shadow-dark-tremor-input dark:text-dark-tremor-content-emphasis",
"dark:shadow-dark-tremor-input",
getSelectButtonColors(hasSelection, disabled, error),
isFocused &&
tremorTwMerge(
Expand All @@ -68,10 +68,10 @@ const Textarea = React.forwardRef<HTMLTextAreaElement, TextareaProps>((props, re
// dark
"dark:border-dark-tremor-brand-subtle dark:ring-dark-tremor-brand-muted",
),
border.sm.all,
disabled
? "placeholder:text-tremor-content-subtle dark:placeholder:text-dark-tremor-content-subtle"
: "placeholder:text-tremor-content dark:placeholder:text-dark-tremor-content",
border.sm.all,
className,
)}
onClick={() => {
Expand Down

0 comments on commit 062c24a

Please sign in to comment.