layer5 icon indicating copy to clipboard operation
layer5 copied to clipboard

[UI][Learn] Fix missing CSS closing brace for rqst-workshop and typo in readmeBtn selector in WorkshopsGrid

Open ayushbuilds-code opened this issue 2 weeks ago • 1 comments

Description

In src/sections/Learn/Workshop-grid/WorkshopsGrid.style.js, two CSS issues exist in the workshop grid stylesheet:

  1. Missing closing brace on .rqst-workshop: The .rqst-workshop block opened at line 217 wraps .bottom-image, Button:hover, and a, but is never closed with a } before the styled-components template literal terminates (leaving braces unbalanced at 48 open vs 47 close).
  2. Typo in selector .readmreBtn:after: Line 97 defines .readmreBtn:after with an extra 'r' typo. The actual class used on the component in src/sections/Learn/Workshop-grid/index.js is readmeBtn (<Link to={fields.slug} className="readmeBtn">). Because of this typo, the :after pseudo-element overlay styling never applies to the button.

Expected Behaviour

  • .rqst-workshop should have its closing } brace, balancing the stylesheet braces (48/48).
  • .readmeBtn:after should correctly target the readmeBtn element so its pseudo-element styling takes effect.

Suggested Fix

  1. Rename .readmreBtn:after to .readmeBtn:after.
  2. Add the missing closing } for .rqst-workshop before the template literal ends.

ayushbuilds-code avatar Nov 16 '26 21:11 ayushbuilds-code

I have opened PR https://github.com/layer5io/layer5/pull/8432 with the 3-line fix.

ayushbuilds-code avatar Nov 16 '26 21:11 ayushbuilds-code