Skip to content

Commit

Permalink
✨Utilized captionColor
Browse files Browse the repository at this point in the history
  • Loading branch information
carefree0910 committed May 17, 2023
1 parent 2e0053b commit bc55c56
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions cfdraw/.web/src/components/CFInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ interface ICFInput extends InputProps {
tooltip?: string;
}
function CFInput({ tooltip, ...props }: ICFInput) {
const { textColor } = themeStore.styles;
const { textColor, captionColor } = themeStore.styles;

return (
<CFTooltip label={tooltip}>
<Input color={textColor} flexShrink={0} {...props} />
<Input color={textColor} _placeholder={{ color: captionColor }} flexShrink={0} {...props} />
</CFTooltip>
);
}
Expand Down
4 changes: 2 additions & 2 deletions cfdraw/.web/src/components/CFTextarea.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ interface ICFTextarea extends TextareaProps {
tooltip?: string;
}
function CFTextarea({ tooltip, ...props }: ICFTextarea) {
const { textColor } = themeStore.styles;
const { textColor, captionColor } = themeStore.styles;

return (
<CFTooltip label={tooltip}>
<Textarea color={textColor} {...props} />
<Textarea color={textColor} _placeholder={{ color: captionColor }} {...props} />
</CFTooltip>
);
}
Expand Down

0 comments on commit bc55c56

Please sign in to comment.