Skip to content

Commit 2dafe9e

Browse files
committed
Update upload button
1 parent e9bd29d commit 2dafe9e

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

frontend/src/components/NewQuestion/QuestionImageContainer.tsx

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,17 @@ const QuestionImageContainer: React.FC<QuestionImageContainerProps> = ({
4242
<Button
4343
component="label"
4444
variant="contained"
45-
sx={{
45+
disableElevation={true}
46+
sx={(theme) => ({
4647
borderRadius: 3,
4748
height: 128,
4849
width: "100%",
49-
backgroundColor: "rgba(0, 0, 0, 0.01)",
50+
backgroundColor: "rgba(0, 0, 0, 0.02)",
5051
color: "#757575",
51-
border: "1px grey",
52+
border: "1px solid",
53+
borderColor: theme.palette.grey[400],
5254
marginTop: 2,
53-
}}
55+
})}
5456
>
5557
<FileUploadIcon />
5658
Click to upload images. The maximum image size accepted is 5MB.
@@ -75,15 +77,17 @@ const QuestionImageContainer: React.FC<QuestionImageContainerProps> = ({
7577
<Button
7678
component="label"
7779
variant="contained"
78-
sx={{
80+
disableElevation={true}
81+
sx={(theme) => ({
7982
borderRadius: 3,
8083
height: 128,
8184
width: 128,
82-
backgroundColor: "rgba(0, 0, 0, 0.01)",
85+
backgroundColor: "rgba(0, 0, 0, 0.02)",
8386
color: "#757575",
84-
border: "1px grey",
87+
border: "1px solid",
88+
borderColor: theme.palette.grey[400],
8589
textAlign: "center",
86-
}}
90+
})}
8791
>
8892
<FileUploadIcon />
8993
Upload images

0 commit comments

Comments
 (0)