Skip to content

Fix grey background on code lines in leaderboard - #137

Merged
msaroufim merged 1 commit into
mainfrom
fix-code-block-background-v2
Feb 7, 2026
Merged

msaroufim merged 1 commit into
mainfrom
fix-code-block-background-v2

Conversation

@msaroufim

Copy link
Copy Markdown
Member

Summary

  • Removes the per-line grey background on code snippets in the leaderboard view
  • The Prism syntax highlighter theme applies a background color to each <code> element, causing individual grey boxes behind every line of code
  • Adds a & code { background: transparent } override, matching the existing & pre override

Test plan

  • Open a leaderboard entry with a code snippet
  • Verify code lines no longer have individual grey backgrounds
  • Verify syntax highlighting still works correctly in both light and dark mode

Override background on <code> elements from Prism syntax highlighter
theme, matching existing <pre> override.
@msaroufim
msaroufim merged commit 6d16833 into main Feb 7, 2026
1 check passed
SinatrasC pushed a commit to SinatrasC/kernelboard that referenced this pull request Jun 17, 2026
…-mode#137)

Override background on <code> elements from Prism syntax highlighter
theme, matching existing <pre> override.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant