? No Code Attached Yet a11y
avatar Chaosxmk
Chaosxmk
16 Mar 2022

Is your feature request related to a problem? Please describe.

Every time I add a link with target="_blank" in the backend, it forcefully adds the icon indicating the external url. Usually it isn't a problem but occasionally I want to use an icon that better fits the situation or no icon at all. For my custom component, this isn't an issue but whenever I have to do something similar outside of my component I'm forced to either include a custom css file just for this or to live with the icon

Describe the solution you'd like

A class to disable the icon would be very helpful, something like

a[target=_blank].no-target-blank::before {
	display: none !important;
}

Or even a modification to the existing style

a[target=_blank]:not(.no-target-blank)::before {
	[...]
}
avatar Chaosxmk Chaosxmk - open - 16 Mar 2022
avatar Chaosxmk Chaosxmk - edited - 16 Mar 2022
avatar joomla-cms-bot joomla-cms-bot - change - 16 Mar 2022
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 16 Mar 2022
avatar chmst
chmst - comment - 16 Mar 2022

Removing the icon in your component means that you have other methods for indicating external links?
Joomla 4 aims to be accessible (AA) and indication external links is mandatory.
"no-target-blank" is not an option. If you have better icons - which would you suggest?

avatar richard67
richard67 - comment - 16 Mar 2022

What is the problem with using a custom CSS (user.css)?

avatar chmst chmst - change - 16 Mar 2022
Labels Added: ? a11y
avatar chmst chmst - labeled - 16 Mar 2022
avatar chmst chmst - labeled - 16 Mar 2022
avatar Chaosxmk
Chaosxmk - comment - 16 Mar 2022

I don't really have a concrete answer with what would be a better icon, and while I understand that the icon is being added for a11y functionality I do think it could be helpful in fringe instances. That said, I'm doing a pretty poor job at explaining my reasoning or defending it and maybe it would be best to just handle those fringe instances myself.

avatar chmst chmst - close - 16 Mar 2022
avatar chmst
chmst - comment - 16 Mar 2022

@Chaosxmk thank you for understanding the reason for the exernal link icon.
I will close this issue for now. We can re-open it if you have a generic solution for that.

avatar chmst chmst - change - 16 Mar 2022
Status New Closed
Closed_Date 0000-00-00 00:00:00 2022-03-16 21:07:12
Closed_By chmst

Add a Comment

Login with GitHub to post a comment