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

chore(docs): fixes appearance for some logos in dark mode #12379

Merged
merged 1 commit into from
Dec 22, 2024

Conversation

sormiston
Copy link
Contributor

@sormiston sormiston commented Dec 13, 2024

☕️ Reasoning

This PR repairs the appearance of black provider logos (most notably Apple and Github) when presented in dark mode browser UI. These logos currently are not visible to users of dark mode.

Fix is applied via CSS on both

  • Auth core default signin page, and
  • the Docs

Auth core default signin page
Screen_Recording_2024-12-13_at_19 35 40

Docs: Before
docs-before

Docs: After
docs-after

🧢 Checklist

  • Documentation
  • Tests
  • Ready to be merged

🎫 Affected issues

This PR aims to resolve issues of #11232 .
Per @ndom91 's requirement, this solution does not require additional icons.
Rather, it inverts the color scale of specific black icons when in dark mode, with CSS.

📌 Resources

Copy link

vercel bot commented Dec 13, 2024

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

Name Status Preview Comments Updated (UTC)
auth-docs ❌ Failed (Inspect) Dec 22, 2024 1:41am
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
next-auth-docs ⬜️ Ignored (Inspect) Visit Preview Dec 22, 2024 1:41am

Copy link

vercel bot commented Dec 13, 2024

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

A member of the Team first needs to authorize it.

Copy link
Member

@ndom91 ndom91 left a comment

Choose a reason for hiding this comment

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

Awesome, thanks for doing this without requiring additional svgs! 🙏

@ndom91 ndom91 force-pushed the fix/dark-theme-provider-logos branch from 0ae8ad8 to 720668e Compare December 22, 2024 01:40
@ndom91 ndom91 changed the title fixes appearance for some logos in dark mode (apple, github) chore(docs): fixes appearance for some logos in dark mode Dec 22, 2024
@ndom91 ndom91 merged commit 2f86dfd into nextauthjs:main Dec 22, 2024
5 of 7 checks passed
falcowinkler pushed a commit to halvaradop/next-auth that referenced this pull request Jan 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Refers to `@auth/core`
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants