layer5 icon indicating copy to clipboard operation
layer5 copied to clipboard

[Pricing] Fix JSS syntax and stray closing brace in PlanCard styling

Open ayushbuilds-code opened this issue 1 week ago • 0 comments

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:

  1. Invalid CSS syntax inside the template literal (quoted property names, camelCase fontSize: "12px",, trailing commas).
  2. 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-row and .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 });.

ayushbuilds-code avatar Nov 23 '26 18:11 ayushbuilds-code