Skip to content

Commit

Permalink
fix(#28): error color for fileinput label
Browse files Browse the repository at this point in the history
  • Loading branch information
notmedia committed Dec 7, 2022
1 parent fb58211 commit a799375
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/app/components/file-input/file.input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export type FileInputProps = Partial<Omit<InputProps, 'type' | 'value' | 'onChan
};

export const FileInput = React.forwardRef<HTMLInputElement, FileInputProps>(
({ accept, buttonColor, onChange, value, readOnly, label, ...props }, ref) => {
({ accept, buttonColor, onChange, value, readOnly, label, color, ...props }, ref) => {
const [inputValue, setInputValue] = React.useState(value);

React.useEffect(() => {
Expand All @@ -36,10 +36,11 @@ export const FileInput = React.forwardRef<HTMLInputElement, FileInputProps>(
clearable={!readOnly}
readOnly
onClearClick={() => onChange(undefined)}
color={color}
// @ts-ignore
label={
<Container gap={0} display="flex" wrap="nowrap" alignItems="center">
<Text size={12} css={{ letterSpacing: 'unset', fontFamily: '$sans' }}>
<Text size={12} color={color} css={{ letterSpacing: 'unset', fontFamily: '$sans' }}>
{label}
</Text>
<Spacer x={0.5} />
Expand Down

0 comments on commit a799375

Please sign in to comment.