Skip to content

Commit a799375

Browse files
committed
fix(#28): error color for fileinput label
1 parent fb58211 commit a799375

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/app/components/file-input/file.input.tsx

+3-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export type FileInputProps = Partial<Omit<InputProps, 'type' | 'value' | 'onChan
1313
};
1414

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

1919
React.useEffect(() => {
@@ -36,10 +36,11 @@ export const FileInput = React.forwardRef<HTMLInputElement, FileInputProps>(
3636
clearable={!readOnly}
3737
readOnly
3838
onClearClick={() => onChange(undefined)}
39+
color={color}
3940
// @ts-ignore
4041
label={
4142
<Container gap={0} display="flex" wrap="nowrap" alignItems="center">
42-
<Text size={12} css={{ letterSpacing: 'unset', fontFamily: '$sans' }}>
43+
<Text size={12} color={color} css={{ letterSpacing: 'unset', fontFamily: '$sans' }}>
4344
{label}
4445
</Text>
4546
<Spacer x={0.5} />

0 commit comments

Comments
 (0)