Skip to content

Commit 7bb29c7

Browse files
committed
Fix: Font Size
Signed-off-by: Varad Gupta <114755221+vr-varad@users.noreply.github.com>
1 parent b99b262 commit 7bb29c7

1 file changed

Lines changed: 13 additions & 5 deletions

File tree

  • src/components/Pricing/PricingAddons

src/components/Pricing/PricingAddons/index.js

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -388,9 +388,9 @@ export const PricingAddons = ({ isYearly = false, setIsYearly }) => {
388388
fontFamily: "\"Qanelas Soft\", \"Open Sans\", sans-serif",
389389
borderRadius: "8px",
390390
padding: "8px 12px",
391-
whiteSpace: { xs: "normal", sm: "nowrap" }, // default for sm+ is nowrap
392-
maxWidth: { xs: "150px", sm: "none" }, // remove maxWidth for sm+
393-
textAlign: { xs: "center", sm: "left" }, // default alignment for sm+
391+
whiteSpace: { xs: "normal", sm: "nowrap" },
392+
maxWidth: { xs: "150px", sm: "none" },
393+
textAlign: { xs: "center", sm: "left" },
394394
overflowWrap: { xs: "break-word", sm: "normal" },
395395
"&:before": {
396396
borderTopColor: "#363F49",
@@ -417,7 +417,15 @@ export const PricingAddons = ({ isYearly = false, setIsYearly }) => {
417417
label: (
418418
<Box sx={{ textAlign: "center", fontSize: "1.25rem", fontWeight: "bold" }}>
419419
<Box>{option.learners === "2500+" ? "2,500+" : option.learners}</Box>
420-
<Box sx={{ color: "text.secondary", mb: 1.5, fontSize: ".9rem" }}>
420+
<Box
421+
sx={{
422+
color: "text.secondary",
423+
mb: 1.5,
424+
fontSize: {
425+
xs: "0.75rem",
426+
sm: "0.9rem",
427+
}
428+
}}>
421429
{option.currency}{isYearly ? option.yearlyPerUser : option.monthlyPerUser}<br />{targetSubAddon.unitLabelSingular}/{isYearly ? "year" : "month"}
422430
</Box>
423431
</Box>
@@ -569,7 +577,7 @@ export const PricingAddons = ({ isYearly = false, setIsYearly }) => {
569577
<Typography variant="h6" sx={{ textTransform: "uppercase", fontSize: 12, textAlign: "right", margin: 0, fontFamily: "\"Qanelas Soft\", \"Open Sans\", sans-serif" }} gutterBottom color="text.secondary" fontWeight="300">
570578
TOTAL
571579
</Typography>
572-
<Box sx={{ display: "flex", justifyContent: "space-between", alignItems: "center" }}>
580+
<Box sx={{ display: "flex", justifyContent: "space-between", alignItems: "baseline" }}>
573581
<Typography variant="body1" gutterBottom color="text.secondary" fontWeight="300" sx={{ textTransform: "uppercase", fontSize: 14, textAlign: "left", margin: 0, fontFamily: "\"Qanelas Soft\", \"Open Sans\", sans-serif" }}>
574582
{isYearly ? "Yearly" : "Monthly"} Cost
575583
</Typography>

0 commit comments

Comments
 (0)