Skip to content
Snippets Groups Projects
Commit 2d85a328 authored by Klaas Kliffen's avatar Klaas Kliffen :satellite:
Browse files

Merge branch 'hotfix/fix_fileinput_darkmode_text' into 'main'

fix: explicitly set text color

See merge request !38
parents c5256332 0ee58aa2
No related branches found
No related tags found
1 merge request!38fix: explicitly set text color
Pipeline #75560 passed
...@@ -7,7 +7,9 @@ import { ...@@ -7,7 +7,9 @@ import {
InputHTMLAttributes, InputHTMLAttributes,
useId, useId,
} from "react"; } from "react";
import { clsx } from "clsx";
import Typography from "src/components/Typography"; import Typography from "src/components/Typography";
import { textColor } from "./utils/classes.ts";
interface Props extends InputHTMLAttributes<HTMLInputElement> { interface Props extends InputHTMLAttributes<HTMLInputElement> {
label: string; label: string;
...@@ -52,7 +54,7 @@ const FileInput = (props: Props) => { ...@@ -52,7 +54,7 @@ const FileInput = (props: Props) => {
<Typography text={label} variant="paragraph" /> <Typography text={label} variant="paragraph" />
</label> </label>
<input <input
className="mt-3" className={clsx("mt-3", textColor("body"))}
id={inputId} id={inputId}
ref={inputRef} ref={inputRef}
type="file" type="file"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment