Fix: unreadable code text in the dark Try-it-now block - #17
Merged
Conversation
The code rule paints the --card background and a border on every <code>; inside the dark 'Try it now' <pre> that meant light text on light chips. pre code now resets background, border, padding, and inherits color. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Jahm7QG8cVw7zcGeZV6Vet
Deploying www with
|
| Latest commit: |
1d881f1
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://35c2a114.www-4rw.pages.dev |
| Branch Preview URL: | https://fix-pre-code-contrast.www-4rw.pages.dev |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The global
coderule paints--cardbackground + border + padding on every<code>, including the one inside the dark<pre>— light text on light chips in light mode, boxed lines in dark mode. Added:(
font-size: 1emstops the.88eminline-code size compounding inside the pre's.9rem.)Before / after (dark mode simulated by forcing the dark palette variables, since headless capture follows the OS theme; screenshots in the private ops repo):
Both commands read clearly in both modes after the fix. Copy-paste is plain text by construction — the block is
<pre><code>raw text</code></pre>with no child elements, and CSS never enters the clipboard.🤖 Generated with Claude Code
https://claude.ai/code/session_01Jahm7QG8cVw7zcGeZV6Vet