Skip to content

Commit cfa88c4

Browse files
committed
addressing comments UI
1 parent b980ee7 commit cfa88c4

2 files changed

Lines changed: 27 additions & 20 deletions

File tree

Lines changed: 0 additions & 6 deletions
Loading

frontends/main/src/app-pages/ProductPages/ProductSummary.tsx

Lines changed: 27 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,14 @@ const UnderlinedLink = styled(ResponsiveLink)({
3838
textDecoration: "underline",
3939
})
4040

41+
const SecondaryUnderlinedLink = styled(UnderlinedLink)(({ theme }) => ({
42+
...theme.typography.body3,
43+
color: theme.custom.colors.silverGrayDark,
44+
[theme.breakpoints.down("sm")]: {
45+
...theme.typography.body4,
46+
},
47+
}))
48+
4149
const InfoRow = styled.div(({ theme }) => ({
4250
width: "100%",
4351
display: "flex",
@@ -456,13 +464,19 @@ const ProgramListPriceText = styled.span(({ theme }) => ({
456464
...theme.typography.body2,
457465
fontSize: "14px",
458466
lineHeight: "18px",
459-
fontWeight: theme.typography.fontWeightMedium,
467+
fontWeight: theme.typography.fontWeightRegular,
460468
color: theme.custom.colors.silverGrayDark,
461469
}))
462470

463-
const ProgramListPriceAmount = styled.span({
471+
const ProgramListPriceAmount = styled.span(({ theme }) => ({
472+
fontStyle: "normal",
473+
fontSize: "14px",
474+
lineHeight: "18px",
475+
letterSpacing: "0",
476+
verticalAlign: "bottom",
464477
textDecoration: "line-through",
465-
})
478+
fontWeight: theme.typography.fontWeightMedium,
479+
}))
466480

467481
const ProgramPriceDivider = styled.div(({ theme }) => ({
468482
width: "100%",
@@ -939,6 +953,16 @@ const ProgramPriceRow: React.FC<ProgramPriceRowProps> = ({
939953
</ProgramListPriceText>
940954
</ProgramDiscountBlock>
941955
) : null}
956+
{program.page.financial_assistance_form_url ? (
957+
<SecondaryUnderlinedLink
958+
href={mitxonlineLegacyUrl(program.page.financial_assistance_form_url)}
959+
target="_blank"
960+
rel="noopener noreferrer"
961+
style={{ minWidth: "fit-content" }}
962+
>
963+
Financial assistance available
964+
</SecondaryUnderlinedLink>
965+
) : null}
942966
{enrollmentType === "both" ? (
943967
<ProgramStartForFreeBox>
944968
<ProgramStartForFreeIcon
@@ -961,17 +985,6 @@ const ProgramPriceRow: React.FC<ProgramPriceRowProps> = ({
961985
</ProgramStartForFreeTextContainer>
962986
</ProgramStartForFreeBox>
963987
) : null}
964-
{program.page.financial_assistance_form_url ? (
965-
<UnderlinedLink
966-
color="black"
967-
href={mitxonlineLegacyUrl(program.page.financial_assistance_form_url)}
968-
target="_blank"
969-
rel="noopener noreferrer"
970-
style={{ minWidth: "fit-content" }}
971-
>
972-
Financial assistance available
973-
</UnderlinedLink>
974-
) : null}
975988
</ProgramPayContent>
976989
</ProgramPaySection>
977990
) : (

0 commit comments

Comments
 (0)