There are 4 comments.
 
 
XWiki Platform / cid:jira-generated-image-avatar-45cec532-caa0-4918-b150-0c41db521faf XWIKI-23954 Open

Don't underline inline links by default

 
View issue   ยท   Add comment
 

4 comments

 
cid:jira-generated-image-avatar-2e05e072-e8ea-41ca-a0e1-c6c5a9d4f87f Charpentier Lucas on 29/Jan/26 17:08
 

Camelia Andrei Unfortunately, lists like that can contain :

  • Just a link (link by itself)
  • A link with some text (inline link)
  • Just text

Assuming you can's see the color difference (with XWiki, it's too low so we can't everyone can), if you don't underline links, how would you separate the three?
For your use case, you could use the util class `.force-no-underline` on the container of your custom template. AFAICS I forgot to document this class properly, sorry about that. Creating doc.

 
cid:jira-generated-image-avatar-2e05e072-e8ea-41ca-a0e1-c6c5a9d4f87f Charpentier Lucas on 29/Jan/26 17:09
 
[~andreic] Unfortunately, lists like that can contain :
* Just a link (link by itself)
* A link with some text (inline link)
* Just text

Assuming you can's see the color difference (with XWiki, it's too low so we can't everyone can), if you don't underline links, how would you separate the three?
In your example, AFAIU there's no contextual cues that would make it clear that every item is a link.

For your use case, you could use the util class `.force-no-underline` on the container of your custom template. AFAICS I forgot to document this class properly, sorry about that. Creating doc.
 
cid:jira-generated-image-avatar-2e05e072-e8ea-41ca-a0e1-c6c5a9d4f87f Charpentier Lucas on 29/Jan/26 17:12
 
[~andreic] Unfortunately, lists like that can contain :
* Just a link (link by itself)
* A link with some text (inline link)
* Just text

Assuming you can's see the color difference (with XWiki, it's too low so we can't everyone can), if you don't underline links, how would you separate the three?
In your example, AFAIU there's no contextual cues that would make it clear that every item is a link.

Another idea: assuming this a navigation element, we could disable underline in all `navigation` landmarks and it would work here if you used a https://developer.mozilla.org/fr/docs/Web/HTML/Reference/Elements/nav . Would that be good? IMO deactivating underline in navigation elements is okay because navigation elements main purpose is to contain links, and they are usually made distinct enough from regular text.

For your use case, you could also use the util class `.force-no-underline` on the container of your custom template. AFAICS I forgot to document this class properly, sorry about that. Creating doc.
 
cid:jira-generated-image-avatar-2e05e072-e8ea-41ca-a0e1-c6c5a9d4f87f Charpentier Lucas on 29/Jan/26 17:13
 
[~andreic] Unfortunately, lists like that can contain :
* Just a link (link by itself)
* A link with some text (inline link)
* Just text

Assuming you can's see the color difference (with XWiki, it's too low so we can't everyone can), if you don't underline links, how would you separate the three?
In your example, AFAIU there's no contextual cues that would make it clear that every item is a link.

Another idea:
assuming this a navigation element, we could disable underline underlining in all `navigation` landmarks and it would work here if you used a https://developer.mozilla.org/fr/docs/Web/HTML/Reference/Elements/nav . Would that be good? IMO deactivating underline in navigation elements is okay because navigation elements main purpose is to contain links (usually quite a few...) , and they are usually made distinct enough from styled nicely to not look like regular text.

For your use case, you could also use the util class `.force-no-underline` on the container of your custom template. AFAICS I forgot to document this class properly, sorry about that. Creating doc.