Skip to content

Commit

Permalink
Add dark mode support to InputWithCopy and (#19011)
Browse files Browse the repository at this point in the history
TextInputField components
  • Loading branch information
Siddhant-K-code authored Nov 5, 2023
1 parent 59fb058 commit 18e04fb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/dashboard/src/components/InputWithCopy.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export const InputWithCopy: FC<Props> = ({ value, tip = "Click to copy", classNa
return (
// max-w-lg is to mirror width of TextInput so Tooltip is positioned correctly
<div className={`w-full relative max-w-lg ${className ?? ""}`}>
<TextInput value={value} disabled className="w-full pr-8 overscroll-none" />
<TextInput value={value} disabled className="w-full pr-8 overscroll-none dark:text-[#A8A29E]" />

<Tooltip content={tip} className="absolute top-1.5 right-1">
<Button
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ export const TextInput: FunctionComponent<TextInputProps> = memo(
return (
<input
id={id}
className={classNames("w-full max-w-lg", className)}
className={classNames("w-full max-w-lg dark:text-[#A8A29E]", className)}
value={value}
type={type}
placeholder={placeholder}
Expand Down

0 comments on commit 18e04fb

Please sign in to comment.