Hyperlinks in comments to source code in pull request are rendered grey, they are difficult to spot #6074

Closed
opened 2025-11-02 06:44:23 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @shaoran on GitHub (Oct 1, 2020).

Description

The hyperlinks inside review comments in pull request get the .text.grey class and the hyperlink are hard to see.

If you go to the Files Changed section of the pull request, you'll see that the style of the hyperlink is blue, so it is easy to read.

However, if you go to the Conversation tab of the same pull request, it's hard to realize that this is a hyperlink because it's almost black and matches the color of the surrounding text. That happens because the <a href="..."> tag is inside a <span class="text grey"> tag as you can see here:

It seems to me that there is an error with the ending tag of the <span class="text grey"> tag. Notice that there are also block elements (like <div>) inside the <span>, which are not allowed in an inline element like <span> anyway. See https://github.com/go-gitea/gitea/blob/master/templates/repo/issue/view_content/comments.tmpl#L488

Screenshots

hyperlink-test-side-by-side

Originally created by @shaoran on GitHub (Oct 1, 2020). <!-- NOTE: If your issue is a security concern, please send an email to security@gitea.io instead of opening a public issue --> <!-- 1. Please speak English, this is the language all maintainers can speak and write. 2. Please ask questions or configuration/deploy problems on our Discord server (https://discord.gg/gitea) or forum (https://discourse.gitea.io). 3. Please take a moment to check that your issue doesn't already exist. 4. Please give all relevant information below for bug reports, because incomplete details will be handled as an invalid report. --> - Gitea version: 1.12.2 - Git version: - Operating system: - Database (use `[x]`): - [x] PostgreSQL - [ ] MySQL - [ ] MSSQL - [ ] SQLite - Can you reproduce the bug at https://try.gitea.io: - [x] Yes, https://try.gitea.io/shaoran/hyperlink-test/pulls/2 - [ ] No - [ ] Not relevant - Log gist: ## Description The hyperlinks inside review comments in pull request get the `.text.grey` class and the hyperlink are hard to see. If you go to the [Files Changed](https://try.gitea.io/shaoran/hyperlink-test/pulls/2/files) section of the pull request, you'll see that the style of the hyperlink is blue, so it is easy to read. However, if you go to the [Conversation](https://try.gitea.io/shaoran/hyperlink-test/pulls/2) tab of the same pull request, it's hard to realize that this is a hyperlink because it's almost black and matches the color of the surrounding text. That happens because the `<a href="...">` tag is inside a `<span class="text grey">` tag as you can see here: ![](https://user-images.githubusercontent.com/113313/94786491-555ae300-03d1-11eb-982a-0ac9aba80971.png) It seems to me that there is an error with the ending tag of the `<span class="text grey">` tag. Notice that there are also block elements (like `<div>`) inside the `<span>`, which are not allowed in an inline element like `<span>` anyway. See https://github.com/go-gitea/gitea/blob/master/templates/repo/issue/view_content/comments.tmpl#L488 ## Screenshots ![hyperlink-test-side-by-side](https://user-images.githubusercontent.com/113313/94785624-327bff00-03d0-11eb-9992-6d37c70c2e1c.png) <!-- **If this issue involves the Web Interface, please include a screenshot** -->
GiteaMirror added the hacktoberfesttopic/uigood first issuetype/bug labels 2025-11-02 06:44:23 -06:00
Author
Owner

@mrsdizzie commented on GitHub (Oct 2, 2020):

Closed by linked pr

@mrsdizzie commented on GitHub (Oct 2, 2020): Closed by linked pr
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#6074