layer5
layer5 copied to clipboard
[UI][Learn] Fix missing CSS closing brace for rqst-workshop and typo in readmeBtn selector in WorkshopsGrid
Description
In src/sections/Learn/Workshop-grid/WorkshopsGrid.style.js, two CSS issues exist in the workshop grid stylesheet:
- Missing closing brace on
.rqst-workshop: The.rqst-workshopblock opened at line 217 wraps.bottom-image,Button:hover, anda, but is never closed with a}before the styled-components template literal terminates (leaving braces unbalanced at 48 open vs 47 close). - Typo in selector
.readmreBtn:after: Line 97 defines.readmreBtn:afterwith an extra 'r' typo. The actual class used on the component insrc/sections/Learn/Workshop-grid/index.jsisreadmeBtn(<Link to={fields.slug} className="readmeBtn">). Because of this typo, the:afterpseudo-element overlay styling never applies to the button.
Expected Behaviour
.rqst-workshopshould have its closing}brace, balancing the stylesheet braces (48/48)..readmeBtn:aftershould correctly target thereadmeBtnelement so its pseudo-element styling takes effect.
Suggested Fix
- Rename
.readmreBtn:afterto.readmeBtn:after. - Add the missing closing
}for.rqst-workshopbefore the template literal ends.
I have opened PR https://github.com/layer5io/layer5/pull/8432 with the 3-line fix.