-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Add alt text to logo #19892
Add alt text to logo #19892
Conversation
The recommended way is to use the name of the organisation followed by "logo". however, since this is my first contribution, I am not entirely sure, whether this is the best approach here. The organisation is different from the organisation you can create as part of the application. Instead, it is more related to the site hosting the instance. Plus, I don't know how to best handle it when the logo image is swapped out. Therefore, I use plain "Logo" and hope that the person visiting the site has enough context. Signed-off-by: André Jaenisch <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this looks good. Since the logo can be customized per-instance, I think "logo" makes generic sense.
Thanks!
Codecov Report
@@ Coverage Diff @@
## main #19892 +/- ##
=======================================
Coverage ? 47.32%
=======================================
Files ? 959
Lines ? 133652
Branches ? 0
=======================================
Hits ? 63245
Misses ? 62707
Partials ? 7700 Continue to review full report at Codecov.
|
* giteaofficial/main: Add alt text to logo (go-gitea#19892) Limit max-height of CodeMirror editors for issue comment and wiki (go-gitea#18271) Implement http signatures support for the API (go-gitea#17565) Increment tests time out from 40m to 50m because sometimes the machine is slow (go-gitea#19887) fix(CI/CD): correct CI variable. (go-gitea#19886) Fix typo (go-gitea#19889) Fixing wrong paging when filtering on the issue dashboard (go-gitea#19801) Move `/info` outside authorization (go-gitea#19888) Fix order by parameter (go-gitea#19849) Exclude Archived repos from Dashboard Milestones (go-gitea#19882) use exact search instead of fuzzy search for branch filter dropdown (go-gitea#19885)
The recommended way is to use the name of the organisation followed by "logo". however, since this is my first contribution, I am not entirely sure, whether this is the best approach here. The organisation is different from the organisation you can create as part of the application. Instead, it is more related to the site hosting the instance. Plus, I don't know how to best handle it when the logo image is swapped out. Therefore, I use plain "Logo" and hope that the person visiting the site has enough context. Signed-off-by: André Jaenisch <[email protected]> Co-authored-by: Lunny Xiao <[email protected]>
Fixes issue #19891
The recommended way
is to use the name of the organisation followed by " logo".
However, since this is my first contribution, I am not entirely sure,
whether this is the best approach here.
The organisation is different from the organisation you can create as
part of the application. Instead, it is more related to the site
hosting the instance. Plus, I don't know how to best handle it when
the logo image is swapped out. Therefore, I use plain "Logo" and hope
that the person visiting the site has enough context.
According to CONTRIBUTING.md
the only translation file to edit as part of the code base is
en-US.ini
.I noticed several sections there, but I assume, base stuff go into the top.
A lack of comments made me unsure, whether I guessed correctly.
This PR adds a new translation key (
logo
) and therefore I added a newline to the ini file.
I ran
make fmt
andmake lint
locally and found no errors or changes.Do we have tests for the markup? Where would I need to update one?
I only saw tests for
.go
files (with a few for js). Rebuilding Gitea made thealt attribute appear with the English text in my local instance.
Signed-off-by: André Jaenisch [email protected]