-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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 migration svg color #16715
Fix migration svg color #16715
Conversation
How does one get this icon to show? I don't see it on https://try.gitea.io/repo/migrate. |
It's in #16356. The original svg contains |
I see two options given that this icon needs to change color on dark themes: .migrate .card {
color: var(--color-text);
} or specifically override the icon to a different color: svg.gitea-onedev {
fill: var(--color-secondary-dark-11);
} |
Does it really "need" to change color on dark themes? If the icon is black it should be black with all themes or not? We do not adjust the git icon on orange themes. |
I prefer to change it because it gives more contrast, even if it's not a original color anymore.
I'm sure there is a svgo plugin to disable somewhere. |
Codecov Report
@@ Coverage Diff @@
## main #16715 +/- ##
==========================================
- Coverage 45.40% 45.36% -0.04%
==========================================
Files 758 758
Lines 85306 85381 +75
==========================================
+ Hits 38732 38733 +1
- Misses 40300 40366 +66
- Partials 6274 6282 +8
Continue to review full report at Codecov.
|
The SVGs on the migration page inherit the current text color which created wrong icons.
Before:
After:
Possible alternative:
color: unset;
@silverwind I don't know what is better in this case.
unset
works nice with themes but is still the wrong color.