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

Resolves dark mode contrast problems in sidebar and breadcrumbs #1886

Merged
merged 6 commits into from May 22, 2023

Conversation

bmuenzenmeyer
Copy link
Contributor

@bmuenzenmeyer bmuenzenmeyer commented May 19, 2023

closes #1237

I've seen people struggling with dark mode color contrast, and worse, implementing heavy-handed !important overrides of tailwind classes to try to fix this.

Sidebar

BEFORE AFTER
image image

Breadcrumb

BEFORE AFTER
image image

The breadcrumb has a tiny bit more work done in it, but it preserves the current UX of the leaf node having a more pronounced color.

BEFORE AFTER
image image

@changeset-bot
Copy link

changeset-bot bot commented May 19, 2023

🦋 Changeset detected

Latest commit: 296c632

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
nextra-theme-docs Patch
nextra Patch
nextra-theme-blog Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel
Copy link

vercel bot commented May 19, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
nextra-v2 ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 22, 2023 2:03pm
1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
nextra ⬜️ Ignored (Inspect) Visit Preview May 22, 2023 2:03pm

@vercel
Copy link

vercel bot commented May 19, 2023

@bmuenzenmeyer is attempting to deploy a commit to the Vercel Team on Vercel.

A member of the Team first needs to authorize it.

Copy link
Collaborator

@dimaMachina dimaMachina left a comment

Choose a reason for hiding this comment

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

thank you!

@dimaMachina dimaMachina merged commit 2d79e20 into shuding:main May 22, 2023
5 of 7 checks passed
filiphuhta pushed a commit to filiphuhta/nextra that referenced this pull request May 24, 2023
…ing#1886)

Co-authored-by: Dimitri POSTOLOV <en3m@ya.ru>
Co-authored-by: Dimitri POSTOLOV <dmytropostolov@gmail.com>
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.

Dark theme does not pass WebAIM Contrast Test
2 participants