Skip to content

Commit ff3d973

Browse files
resolved bug:15313
1 parent c418739 commit ff3d973

2 files changed

Lines changed: 10 additions & 2 deletions

File tree

src/frontend/src/api/utils.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ export const useStyles = makeStyles({
7575
},
7676
selectedCard: {
7777
border: "var(--NeutralStroke2.Rest)",
78-
backgroundColor: "rgb(221, 217, 217)",
78+
backgroundColor: "#EBEBEB",
7979
},
8080
mainContent: {
8181
flex: 1,

src/frontend/src/pages/modernizationPage.tsx

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,7 @@ const ModernizationPage = () => {
489489
// State for the loading component
490490
const [showLoading, setShowLoading] = useState(true);
491491
const [loadingError, setLoadingError] = useState<string | null>(null);
492-
492+
const [selectedFilebg, setSelectedFile] = useState<string | null>(null);
493493
const [selectedFileId, setSelectedFileId] = React.useState<string>("")
494494
const [fileId, setFileId] = React.useState<string>("");
495495
const [expandedSections, setExpandedSections] = React.useState<string[]>([])
@@ -1239,6 +1239,10 @@ const ModernizationPage = () => {
12391239
navigate("/");
12401240
};
12411241

1242+
const handleClick = (file: string) => {
1243+
setSelectedFile(file === selectedFilebg ? null : file);
1244+
};
1245+
12421246
return (
12431247
<div className={styles.root}>
12441248
<div onClick={handleHeaderClick} style={{ cursor: "pointer" }}>
@@ -1296,6 +1300,10 @@ const ModernizationPage = () => {
12961300
// Don't allow selecting queued files
12971301
if (file.status === "ready_to_process") return;
12981302
setSelectedFileId(file.id);
1303+
handleClick(file.id);
1304+
}}
1305+
style={{
1306+
backgroundColor: selectedFilebg === file.id ? "#EBEBEB" : "var(--NeutralBackground1-Rest)",
12991307
}}
13001308
>
13011309
{isSummary ? (

0 commit comments

Comments
 (0)