Skip to content

Commit 9796863

Browse files
committed
style: update button color in dataset detail page for consistent UI styling
1 parent fb33868 commit 9796863

File tree

2 files changed

+21
-10
lines changed

2 files changed

+21
-10
lines changed

src/components/DatasetDetailPage/MetaDataPanel.tsx

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import ArrowCircleRightIcon from "@mui/icons-material/ArrowCircleRight";
2-
import ContentCopyIcon from "@mui/icons-material/ContentCopy";
32
import {
43
Box,
54
Typography,
@@ -42,7 +41,7 @@ const MetaDataPanel: React.FC<Props> = ({
4241
return (
4342
<Box
4443
sx={{
45-
backgroundColor: Colors.white,
44+
backgroundColor: "#fff",
4645
borderRadius: "8px",
4746
display: "flex",
4847
flexDirection: "column",
@@ -173,17 +172,17 @@ const MetaDataPanel: React.FC<Props> = ({
173172
mb: 1,
174173
"& .MuiOutlinedInput-root": {
175174
"& fieldset": {
176-
borderColor: Colors.purple,
175+
borderColor: Colors.green,
177176
},
178177
"&:hover fieldset": {
179-
borderColor: Colors.purple,
178+
borderColor: Colors.green,
180179
},
181180
"&.Mui-focused fieldset": {
182-
borderColor: Colors.purple,
181+
borderColor: Colors.green,
183182
},
184183
},
185184
"& .MuiInputLabel-root.Mui-focused": {
186-
color: Colors.purple,
185+
color: Colors.green,
187186
},
188187
}}
189188
>
@@ -242,7 +241,7 @@ const MetaDataPanel: React.FC<Props> = ({
242241
<ArrowCircleRightIcon
243242
fontSize="small"
244243
sx={{
245-
color: Colors.purple,
244+
color: Colors.green,
246245
}}
247246
/>
248247
</IconButton>

src/pages/UpdatedDatasetDetailPage.tsx

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -937,12 +937,15 @@ const UpdatedDatasetDetailPage: React.FC = () => {
937937
variant="contained"
938938
size="small"
939939
sx={{
940-
backgroundColor: "#1976d2",
940+
backgroundColor: Colors.purple,
941941
flexShrink: 0,
942942
minWidth: "70px",
943943
fontSize: "0.7rem",
944944
padding: "2px 6px",
945945
lineHeight: 1,
946+
"&:hover": {
947+
backgroundColor: Colors.secondaryPurple,
948+
},
946949
}}
947950
onClick={() =>
948951
handlePreview(link.data, link.index, true)
@@ -962,7 +965,7 @@ const UpdatedDatasetDetailPage: React.FC = () => {
962965
</Box>
963966
<Box
964967
sx={{
965-
backgroundColor: "#eaeaea",
968+
backgroundColor: Colors.lightBlue,
966969
padding: 2,
967970
borderRadius: "8px",
968971
flex: 1,
@@ -1047,11 +1050,14 @@ const UpdatedDatasetDetailPage: React.FC = () => {
10471050
variant="contained"
10481051
size="small"
10491052
sx={{
1050-
backgroundColor: "#1976d2",
1053+
backgroundColor: Colors.purple,
10511054
minWidth: "70px",
10521055
fontSize: "0.7rem",
10531056
padding: "2px 6px",
10541057
lineHeight: 1,
1058+
"&:hover": {
1059+
backgroundColor: Colors.secondaryPurple,
1060+
},
10551061
}}
10561062
onClick={() => window.open(link.url, "_blank")}
10571063
>
@@ -1062,10 +1068,16 @@ const UpdatedDatasetDetailPage: React.FC = () => {
10621068
variant="outlined"
10631069
size="small"
10641070
sx={{
1071+
color: Colors.purple,
1072+
borderColor: Colors.purple,
10651073
minWidth: "65px",
10661074
fontSize: "0.7rem",
10671075
padding: "2px 6px",
10681076
lineHeight: 1,
1077+
"&:hover": {
1078+
color: Colors.secondaryPurple,
1079+
borderColor: Colors.secondaryPurple,
1080+
},
10691081
}}
10701082
onClick={() =>
10711083
handlePreview(link.url, link.index, false)

0 commit comments

Comments
 (0)