Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(mdx): rehype pretty code title not showing in light mode #3519

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

RahimGuerfi
Copy link
Contributor

This commit addresses visibility issues in light mode where the code block title was blending with the white background due to the "text-white" Tailwind class. To improve readability, I changed the title color to black for light themes and white for dark themes, ensuring better contrast and legibility across different modes.

Before applying the fix:
before-fix

After applying the fix:
after-fix

Copy link

vercel bot commented Apr 17, 2024

@RahimGuerfi is attempting to deploy a commit to the shadcn-pro Team on Vercel.

A member of the Team first needs to authorize it.

@flixlix
Copy link
Contributor

flixlix commented Apr 20, 2024

oh man, just saw this now after creating my PR #3552, but I still think my implementation is cleaner, with just text-foreground

@RahimGuerfi
Copy link
Contributor Author

oh man, just saw this now after creating my PR #3552, but I still think my implementation is cleaner, with just text-foreground

it's okay and yeah your implementation is better

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.

None yet

3 participants