NuGet / NuGetGallery

NuGet Gallery is a package repository that powers https://www.nuget.org. Use this repo for reporting NuGet.org issues.
https://www.nuget.org/
Apache License 2.0
1.52k stars 643 forks source link

[Dark Theme Bug Bash] Dark them extra copy button creates extra `Copy` text #9956

Closed erdembayar closed 3 weeks ago

erdembayar commented 1 month ago

Impact

It bothers me. A fix would be nice

Describe the bug

Edge browser

  1. Enable dark theme and go to package then press copy image
  2. Paste in Notepad, you'll see extra Copy text, but you wouldn't see it if you do it on nuget.org with the current theme. image
  3. Same bug can repro for all other tabs such as Package Manger, PackageReference etc.

Repro Steps

Edge browser with dark theme https://dev.nugettest.org/packages/e2e.semver2prerel.240506.234617.5383287/ or any other package

Expected Behavior

No extra Copy text in new line besides dotnet add package xxx

Screenshots

No response

Additional Context and logs

No response

JonDouglas commented 1 month ago

Can confirm. I get

dotnet add package Newtonsoft.Json --version 13.0.4                

                        Copy