Skip to content

Commit 29fa5a6

Browse files
authored
Merge pull request #6746 from vr-varad/fix/pricing_css
Fix: Pricing Add Ons Css
2 parents 52e9d23 + 94dd606 commit 29fa5a6

2 files changed

Lines changed: 19 additions & 6 deletions

File tree

src/components/Pricing/PricingAddons/index.js

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ import {
3333
boxStyles,
3434
toggleButtonStyles,
3535
sliderStyles,
36-
iconStyles,
3736
cardStyles,
3837
formControlStyles,
3938
featureDetailsStyles,
@@ -236,19 +235,24 @@ export const PricingAddons = ({ isYearly = false, setIsYearly ,currency,enterpri
236235
<FormControl fullWidth>
237236
<InputLabel sx={typographyStyles.qanelasFont}>Optionally, choose one or more add-ons</InputLabel>
238237
<Select
238+
fullWidth
239239
value={selectedAddon?.id || ""}
240240
onChange={(e) => handleAddonChange(e.target.value)}
241241
label="Optionally, choose one or more add-ons"
242+
MenuProps={{
243+
disableScrollLock: true,
244+
disablePortal: true,
245+
}}
242246
>
243247
{addOns.map((addon) => (
244248
<MenuItem key={addon.id} value={addon.id}>
245249
<Box sx={boxStyles.menuItem}>
246250
{renderIcon(addon.iconType)}
247-
<Box>
248-
<Typography variant="body1" fontWeight="500" sx={typographyStyles.qanelasFont}>
251+
<Box sx={{ minWidth: 0, flex: 1 }}>
252+
<Typography noWrap variant="body1" fontWeight="500" sx={typographyStyles.ellipsisText}>
249253
{addon.name}
250254
</Typography>
251-
<Typography variant="body2" color="text.secondary" sx={typographyStyles.ellipsisText}>
255+
<Typography nowrap variant="body2" color="text.secondary" sx={typographyStyles.ellipsisText}>
252256
{addon.id === "academy"
253257
? addon.description
254258
: (() => {
@@ -388,7 +392,15 @@ export const PricingAddons = ({ isYearly = false, setIsYearly ,currency,enterpri
388392
label: (
389393
<Box sx={{ textAlign: "center", fontSize: "1.25rem", fontWeight: "bold" }}>
390394
<Box>{option.learners === "2500+" ? "2,500+" : option.learners}</Box>
391-
<Box sx={{ color: "text.secondary", mb: 1.5, fontSize: ".9rem" }}>
395+
<Box
396+
sx={{
397+
color: "text.secondary",
398+
mb: 1.5,
399+
fontSize: {
400+
xs: "0.75rem",
401+
sm: "0.9rem",
402+
}
403+
}}>
392404
{formatPrice(isYearly ? option.yearlyPerUser : option.monthlyPerUser)}<br />{targetSubAddon.unitLabelSingular}/{isYearly ? "year" : "month"}
393405
</Box>
394406
</Box>

src/components/Pricing/PricingAddons/styles.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,8 @@ export const boxStyles = {
114114
display: "flex",
115115
alignItems: "center",
116116
gap: 2,
117-
py: 1
117+
py: 1,
118+
width: "100%",
118119
},
119120
featureContainer: {
120121
display: "flex",

0 commit comments

Comments
 (0)