Fix Font Awesome markup and CSS

Created on 1 August 2023, 11 months ago
Updated 26 June 2024, 2 days ago

Problem/Motivation

There are 2 issues with the Font Awesome option:

1. CSS: dot missing, was probably meant to be .extlink i
2. Markup: Accessibility issue.
An aria-label on <i> is not valid with AXE for example: https://jsfiddle.net/8wvby7pt/.
Same on <span> it seems: https://jsfiddle.net/8wvby7pt/1/
PS: It seems this was changed from span-i to span-span in #2467383-35: Accessibility Enhancements β†’ .

Proposed resolution

1. Update the CSS to .extlink i
2. And the markup to use FA's sr-only class + use aria-hidden="true" on the icon:

<span class="fa-ext extlink">
  <i class="fa fa-external-link" aria-hidden="true"></i>
  <span class="sr-only">(link is external)</span>
</span>

https://jsfiddle.net/s23w8q4j/

πŸ› Bug report
Status

Needs work

Version

2.0

Component

Code

Created by

πŸ‡§πŸ‡ͺBelgium herved

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.69.0 2024