Skip to content

fix: resolve black font color on Show more/less in YouTube Dark theme#3833

Merged
ImprovedTube2 merged 4 commits into
code-charity:masterfrom
Muzzu8421:fix/dark-theme-show-more-color
May 30, 2026
Merged

fix: resolve black font color on Show more/less in YouTube Dark theme#3833
ImprovedTube2 merged 4 commits into
code-charity:masterfrom
Muzzu8421:fix/dark-theme-show-more-color

Conversation

@Muzzu8421

Copy link
Copy Markdown
Contributor

Fixes #3828

Problem:
The "Show more" / "Show less" text in collapsed comments
was appearing in black on the YouTube Dark theme, making
it unreadable.

Solution:
Added a CSS override targeting html[dark] and
html[data-theme='dark'] selectors that sets
color: var(--yt-spec-text-primary, #ffffff) ensuring
the text is always visible on dark backgrounds while
keeping the original rule intact for light theme users.

Tested on:

  • YouTube Dark theme ✅
  • YouTube Light theme ✅
Screenshot 2026-05-03 164828 Screenshot 2026-05-03 164927

@ImprovedTube2 ImprovedTube2 added the untested please test. (also applies to proactively merged pull requests.) label May 16, 2026
@ImprovedTube2

Copy link
Copy Markdown
Collaborator

thank you! @Muzzu8421

@ImprovedTube2 ImprovedTube2 merged commit 17f1e76 into code-charity:master May 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

untested please test. (also applies to proactively merged pull requests.)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

🐞 Collapsed Comments: "Show more" font is black on "YouTube Dark" Theme

2 participants