next-auth icon indicating copy to clipboard operation
next-auth copied to clipboard

Github and Discord providers ship incorrect SVGs that blend in with the background colour.

Open abhishekjaiswar221 opened this issue 2 years ago • 5 comments

Provider type

Discord, GitHub

Environment

System: OS: Windows 11 10.0.22631 CPU: (8) x64 11th Gen Intel(R) Core(TM) i5-11300H @ 3.10GHz Memory: 1.06 GB / 7.79 GB

Binaries: Node: 20.9.0 - C:\Program Files\NodeJs\node.EXE Yarn: 1.22.19 - D:\JSpiders Institute\Piyush Garg Code\piyushgarg-dev\node_modules.bin\yarn.CMD npm: 9.8.1 - C:\Program Files\NodeJs\npm.CMD pnpm: 8.14.2 - ~\AppData\Roaming\npm\pnpm.CMD

Browsers: Edge: Chromium (123.0.2420.65) Internet Explorer: 11.0.22621.1

npmPackages: next: ^13.1.1 => 13.4.5 next-auth: ^4.18.10 => 4.22.1 react: 18.2.0 => 18.2.0

Reproduction URL

https://github.com/piyushgarg-dev/piyushgargdev-nextjs/blob/main/pages/api/auth/%5B...nextauth%5D.js

Describe the issue

The SVGs that are delivered by Github and Discord providers are wrong and mix in with the background colour. It appears that instead of providing light SVG's in dark mode, the providers are shipping dark SVG's in dark mode. image

How to reproduce

Go to https://www.piyushgarg.dev/ Click Login in the navigation bar. image

Expected behavior

The providers should ship light SVGs in dark mode and dark SVGs in light mode.

abhishekjaiswar221 avatar Apr 04 '24 14:04 abhishekjaiswar221

This issue was marked with the good first issue label by a maintainer.

This means that it is a good candidate for someone interested in contributing to the project, but does not know where to start.

Have a look at the Contributing Guide first.

This will help you set up your development environment to get started. When you are ready, open a PR, and link back to this issue in the form of adding Fixes #1234 to the PR description, where 1234 is the issue number. This will auto-close the issue when the PR gets merged, making it easier for us to keep track of what has been fixed.

Please make sure that - if applicable - you add tests for the changes you make.

If you have any questions, feel free to ask in the comments below or the PR. Generally, you don't need to @mention anyone directly, as we will get notified anyway and will respond as soon as we can)

[!NOTE]
There is no need to ask for permission "can I work on this?" Please, go ahead if there is no linked PR :slightly_smiling_face:

github-actions[bot] avatar Apr 08 '24 15:04 github-actions[bot]

Seems like this issue has been resolved with https://github.com/nextauthjs/next-auth/pull/10542 standardising the bg colour for all providers

Bisxsh avatar May 26 '24 18:05 Bisxsh

@Bisxsh Bro. I don't think the issue is solved because the problem appears to be still there. Do visit the link https://www.piyushgarg.dev/api/auth/signin?callbackUrl=https%3A%2F%2Fwww.piyushgarg.dev%2Findex%23

abhishekjaiswar221 avatar Jun 03 '24 19:06 abhishekjaiswar221

@abhishekjaiswar221 The fix went in for [email protected]. That project for the link you provided is on v4.18.10 so they won't have the changes on the website. You'd have to create an issue on their repo to update to that version or above if you want the fix to be present there

Bisxsh avatar Jun 15 '24 09:06 Bisxsh

Hello @Bisxsh, Thank you for filling me in with that version thing. I was unaware of it, and I will absolutely create an issue in their repo to upgrade the version of next-auth to the most recent version. And I will close this issue too.

abhishekjaiswar221 avatar Jun 21 '24 12:06 abhishekjaiswar221