Repository navigation
Fix dark-mode contrast in the layout component demos - #7676
FarhanAliRaza wants to merge 5 commits into
Conversation
The stack, box, spacer and aspect ratio demos use fixed light CSS background colors but inherit the theme text color, so in dark mode the labels rendered near-white on pastel boxes. Pin the text color on those boxes. Claude-Session: https://claude.ai/code/session_01LwJUCUDZhZY71q8Azr37BQ
There was a problem hiding this comment.
All reported issues were addressed across 5 files
Reply with feedback, questions, or to request a fix.
View guided diff | Turn on auto-fix | Re-trigger cubic
[Low impact] The PR appears safe to merge; no blocking issues were found. SummaryMakes labels readable on fixed-color backgrounds across four layout demos.
No new actionable issues were found. Tests were not run. Reviews (4) · Last reviewed commit: "Merge remote-tracking branch 'origin/mai..." · Reviewed by Greptile |
…ession test Black on CSS green is about 4.09:1, below the 4.5:1 target; white reads better there. The test scans the four layout demos and fails when a box with a fixed named background has no explicit text color. Claude-Session: https://claude.ai/code/session_01LwJUCUDZhZY71q8Azr37BQ
There was a problem hiding this comment.
All reported issues were addressed across 3 files (changes from recent commits).
Reply with feedback, questions, or to request a fix.
View guided diff | Turn on auto-fix | Re-trigger cubic
Merging this PR will degrade performance by 4.03%2 warnings
Warning Please fix the performance issues or acknowledge them on CodSpeed. Performance Changes
Tip Investigate this regression by commenting Comparing |
…t test The test now finds every bg/background_color prop, inline or not, and looks for color anywhere in the enclosing call rather than requiring a fixed prop order. Claude-Session: https://claude.ai/code/session_01LwJUCUDZhZY71q8Azr37BQ
|
CI note: This PR only touches four docs markdown files, a docs test and a news fragment, none of which the integration harness loads. The same workflow is green on Generated by Claude Code |
|
Validated in the docs app running locally on this branch, in dark mode: Generated by Claude Code |



Type of change
Description
The stack, box, spacer and aspect ratio demos use fixed light CSS background colors (orange, lightblue, papayawhip, ...) but inherit the theme text color, so in dark mode their labels rendered near-white on pastel boxes. This pins
color="black"on those boxes so they read in both themes.https://claude.ai/code/session_01LwJUCUDZhZY71q8Azr37BQ
Generated by Claude Code