layer5 icon indicating copy to clipboard operation
layer5 copied to clipboard

[UX][Learn] Kanvas Labs sign-in CTA text is invisible in light mode across all lab pages

Open tejaswiverma121-byte opened this issue 3 weeks ago β€’ 2 comments

Description

On all 9 individual Kanvas Lab pages (for example: https://layer5.io/learn/kanvas-labs/working-with-meshery-and-istio ), switching to light mode renders the "Sign into the ... (free account) to continue your lab." prompt invisible. The banner container stays solid black (#000), while the surrounding text turns dark against the black background, leaving only the green Meshery Playground link visible.

Affected pages (all 9 labs under src/collections/kanvas-labs/):

/learn/kanvas-labs/meshery-performance-testing /learn/kanvas-labs/traffic-splitting-with-meshery /learn/kanvas-labs/working-with-meshery-and-consul /learn/kanvas-labs/working-with-meshery-and-istio /learn/kanvas-labs/working-with-meshery-and-kuma /learn/kanvas-labs/working-with-meshery-and-linkerd /learn/kanvas-labs/working-with-meshery-and-nsm /learn/kanvas-labs/working-with-meshery-and-open-service-mesh /learn/kanvas-labs/working-with-meshery-and-traefik

Root Cause:

In src/sections/Learn/Lab-single/LabSinglePageWrapper.style.js, .cardContent { is missing its closing } brace (introduced in 4b6acdbf4), causing styled-components to omit the .cardContent rule (color: white; margin: 0 5rem;) from the compiled stylesheet. All 9 MDX files under src/collections/kanvas-labs/*/index.mdx hardcode inline backgroundColor: "black", so without .cardContent setting color: white, light mode falls back to dark body text on a black banner.

(Related prior issue: #4931 / PR #4940, closed in September 2023.

Expected Behavior

The full "Sign into the Meshery Playground (free account) to continue your lab." callout and link should remain clearly legible with proper contrast and container spacing in both light and dark themes across all 9 Kanvas Lab pages.

Screenshots

https://github.com/user-attachments/assets/9cdac9fc-7f44-4c18-af0c-97557aaed7e4

Environment:

  • Host OS:macOS
  • Browser:Chrome

Contributor Resources and Handbook

The layer5.io website uses Gatsby, React, and GitHub Pages. Site content is found under the master branch.

Join the Layer5 Community by submitting your community member form.

tejaswiverma121-byte avatar Nov 12 '26 12:11 tejaswiverma121-byte

Can i get assigned on this issue @PARTH-TUSSLE @Maanvi212006 ?

tejaswiverma121-byte avatar Nov 12 '26 12:11 tejaswiverma121-byte

Opened PR #8403 with the fix: added the missing closing brace to .cardContent in LabSinglePageWrapper.style.js so color: white; and container spacing apply properly, restoring legibility in light mode across all 9 Kanvas lab pages. ESLint, Prettier, and unit tests are all verified green and ready for review!

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