-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Tag text unreadable #18659
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
Comments
It should have been fixed in 1.19/1.20 |
In 1.19.1, there is no improvement of the situation. |
The improved code is here, do you have ideas about your case? gitea/modules/templates/helper.go Lines 543 to 568 in eea23bb
|
I would expect an improvement from a change in Line 182 in 58b4143
increasing this number slightly to 0.4 or something.
|
Yup, it's not really related "scoped label", I mentioned that because the algorithm was changed (improved) again in that PR |
After #24586 , |
On that same page, this one is still not readable: But I think this issue can't be fully solved by tweaking the logic to decide between black and white text. For some label color neither of those will be have good contrast. This can be seen playing around with: Another thing is that the theme background color matters quite a bit for readability, something that's readable with a dark background may not be on a light background. GitHub uses a completely different rendering style in dark themes. To fully solve the problem I think either that is needed, or the label color should be automatically darkened or lightened and not be exactly what the user chose. |
For me, this seems to be due to the fact that the color of the text is not white, but grey for some reason (only really noticable with white background). The greyness reduces the contrast significantly. Still, generally it is an improvement over the status quo ante. On dark background, the label is fine. |
The latest code in #24586 is So I guess this issue as a regression bug report it could be closed? It could have new issues to make detailed plans for the further improvements, to make the discussion more focused. |
I think this issue could be closed. Thank you all. |
Gitea Version
1.16.1
Operating System
Linux
Browser Version
Firefox
Can you reproduce the bug on the Gitea demo site?
Yes
Description
After the tag design change done in 1.16.x, many tag texts are rendered in black which were rendered in white before. For some colors, for example #207de5, this leads to text which is barely readable at best, especially if the tag is seen on white background.
In my opinion, an (at least) partial rollback of this text color change would be helpful.
Screenshots
The text was updated successfully, but these errors were encountered: