Repository navigation
Make code blocks readable - #2
Merged
Merged
Conversation
main.css sets .prose pre to a white background, but the text colour is left at Tailwind Typography's #e5e7eb, which that stylesheet chose to sit on its own dark panel. Near-white on white: the ipSAE listing in the ORF3a report was all but invisible. Set both sides of the pair in site.css, which loads last: a soft panel in the site's greens with ink-coloured text and a green left rule, matching the report's tables and figures. Also switches overflow-x from hidden to auto, so a long line scrolls instead of being clipped. Site-wide rather than scoped to .bj-report, since the bug is in the shared stylesheet and would bite any future code block. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
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 ipSAE listing in the ORF3a report renders as near-white text on a white background.
Cause
Two stylesheets disagree, and neither is wrong on its own:
typography.min.cssstyles.prose prefor a dark panel:background-color:#1f2937; color:#e5e7eb.main.css, which loads after it, overrides the background to white — and leaves the text colour alone.The result is
#e5e7ebon#ffffff: a contrast ratio of about 1.2:1, against the 4.5:1 that WCAG AA asks for.Fix
site.cssloads last, so the pair is set there together — a soft panel in the site's greens, ink-coloured text, and a green left rule that matches the report's tables and figure.overflow-xalso moves fromhiddentoauto, so a long line scrolls rather than being silently clipped.The rule is site-wide rather than scoped to
.bj-report, because the bug lives in the shared stylesheet and would hit any code block added later. Today the report is the only page with a non-mermaid<pre>, so nothing else changes.Checked
Rendered against the local build (
zola build --base-url http://127.0.0.1:8731, since the published pages reference absolute CSS URLs). Code is dark on the panel; the rest of the page is untouched.🤖 Generated with Claude Code