Feature #28330

Links to wiki headings should highlight the linked heading

Added by Mizuki ISHIKAWA 3 months ago. Updated 3 months ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:Go MAEDA% Done:

0%

Category:UI
Target version:4.0.0
Resolution:Fixed

Description


In the issue, linked notes are visually emphasized.
I often use the link to the wiki section so I would like the section to be emphasized just like Issue.

highlighted_note.png (92.9 KB) Mizuki ISHIKAWA, 2018-03-14 01:26

highlighted-section.png (126 KB) Mizuki ISHIKAWA, 2018-03-14 02:33


Related issues

Related to Redmine - Feature #22978: Links to issue notes should highlight the linked note Closed

Associated revisions

Revision 17244
Added by Go MAEDA 3 months ago

Links to wiki headings should highlight the linked heading (#28330).

Patch by Mizuki ISHIKAWA.

History

#1 Updated by Go MAEDA 3 months ago

  • Related to Feature #22978: Links to issue notes should highlight the linked note added

#2 Updated by Go MAEDA 3 months ago

Mizuki ISHIKAWA wrote:

In the issue, linked notes are visually emphasized.

It was implemented by #22978 for Redmine 4.0.0.

#3 Updated by Mizuki ISHIKAWA 3 months ago

<screenshot>

I think that you can emphasize the section by the following style.

diff --git a/public/stylesheets/application.css b/public/stylesheets/application.css
index 369526a9a..8f4fd665f 100644
--- a/public/stylesheets/application.css
+++ b/public/stylesheets/application.css
@@ -551,6 +551,10 @@ table#time-report .hours-dec { font-size: 0.9em; }
 div.wiki-page .contextual a {opacity: 0.4}
 div.wiki-page .contextual a:hover {opacity: 1}

+div.wiki a:target + h1, div.wiki a:target + h2, div.wiki a:target + h3, div.wiki a:target + h4, div.wiki a:target + h5, div.wiki a:target + h6 {
+  background-color:#DDEEFF;
+}
+
 .wiki-update-info {text-align:right; color:#666; font-size:90%;}

 form .attributes select { width: 60%; }

#4 Updated by Go MAEDA 3 months ago

It is another topic that should not be discussed in this issue, but I think it would be even better to highlight replies in forums.

#5 Updated by Go MAEDA 3 months ago

  • Target version set to 4.0.0

Setting target version to 4.0.0 for consistency with #22978.

#6 Updated by Go MAEDA 3 months ago

  • Subject changed from The link to the wiki section should highlight the linked section as well as the issue's note to Links to wiki headings should highlight the linked heading

#7 Updated by Go MAEDA 3 months ago

  • Status changed from New to Closed
  • Assignee set to Go MAEDA
  • Resolution set to Fixed

Committed the patch. Thank you for your contribution.

Also available in: Atom PDF