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: 🐛 title color for code block in light mode #3552

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

Conversation

flixlix
Copy link
Contributor

@flixlix flixlix commented Apr 20, 2024

Dark mode

in dark mode the title above the code block worked fine.

image

Light mode

In light mode, the title wouldn't appear, because the background was also white.

image

Selected Text

Here you can see that the text is still rendered in light mode.

image

Copy link

vercel bot commented Apr 20, 2024

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

A member of the Team first needs to authorize it.

@ruru-m07
Copy link

@flixlix can you also add some images after resolving this issue soo we can see essely what's changes you make

@@ -59,7 +59,7 @@
}

[data-rehype-pretty-code-title] {
@apply mt-2 pt-6 px-4 text-sm font-medium;
@apply mt-2 pt-6 px-4 text-sm font-medium text-foreground;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this change looks better than #3519

@flixlix
Copy link
Contributor Author

flixlix commented Apr 22, 2024

@flixlix can you also add some images after resolving this issue soo we can see essely what's changes you make

@ruru-m07 here you go:

image

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

2 participants