layer5
layer5 copied to clipboard
[Pricing] Fix JSS syntax and stray closing brace in PlanCard styling
Description
In src/components/Pricing/PlanCard/planCard.style.js, lines 248–258 contain JSS / object syntax inside the styled-components template literal:
.MuiSlider-root {
"& .MuiSlider-mark": {
fontSize: "12px",
color: ${(props) => props.theme.text.light};
},
"& .MuiSlider-markLabel": {
fontSize: "12px",
color: ${(props) => props.theme.secondaryColor};
},
}
});
This causes two issues:
- Invalid CSS syntax inside the template literal (quoted property names, camelCase
fontSize: "12px",, trailing commas). - The trailing
});at line 258 introduces an extra closing brace (73 open vs 74 close), which prematurely closes/corrupts the CSS block and leaves the responsive classes below it (.plan-card-rowand.plan-card-col) sitting outside a clean block.
Expected Behavior
.MuiSlider-root rules should use standard CSS nesting syntax, and braces should be balanced without any trailing });.
Actual Behavior
JSS object syntax and a stray }); are present in the CSS template literal.
Proposed Fix
Convert the child selectors (.MuiSlider-mark and .MuiSlider-markLabel) to standard CSS nesting and remove the stray });.