Skip to content

Improve how an external GlLink announces

The change adds proper accessibility support by including a hidden "(external link)" text for screen readers.

Builds on !4523 (merged)

Other approaches considered

  • Adding an element to the DOM, but couldn't get it to wrap with the content properly
  • Manipulating the content of the <slot> directly, but this would be harder to understand and maintain
  • Adding an aria label to the link content, but I couldn't figure out how to stop the pseudo element being announced
Edited by Dan MH

Merge request reports

Loading