There is 1 comment.
 
 
XWiki Platform / cid:jira-generated-image-avatar-e64c72a8-ec95-48dd-9d0b-1f7b4520444b XWIKI-23575 Open

External links styled like buttons have an unexpected position for their icon

 
View issue   ยท   Add comment
 

1 comment

 
cid:jira-generated-image-avatar-8ea382fa-01b8-4485-b8a0-1647190abf7f Charpentier Lucas on 06/Oct/25 14:43
 

Do you think that the external link icon inside the button will provide a nice L&F for a button? I don't think so.

Customizations on instance can decide to remove it, but I believe the information this icon brings to the user is not useless and we should by default make it clear when they click on an external link.

The solution that was used on extensions.xwiki.org was to hide it for the sake of the design, which is completely alright.

Here's a quickly put together prototype to get an idea of what it would look like with the icon in the button:

_thumb_44227.png

IMO the L&F is good enough and it has the advantage of not regressing feature-wise.

Styling an external link into a button is already a pretty advanced use case (on xwiki extension it's done by adding bootstrap classes on the link with XWiki Syntax), so IMO it's alright to expect the advanced user to also hide the icon if that doesn't fit their use case.

WDYT?
Do you have a better idea on how to handle this?
We can open a discussion about it on the forum to gather more insight on the topic too smile.png