Problem/Motivation

In some cases, the external icon is redundant and used solely as a visual progressive enhancement, so we could hide decorative icons from screen readers.
This could be achieved with the property aria-hidden="true" that right now is not available on the module.

Proposed resolution

An extra configuration called "Hide decorative icons from screen readers" add the aria-hidden
tag and according to your site you can set it as true/false

User interface changes

No changes here

API changes

Add the extra configuration "Hide decorative icons from screen readers (extlink_hide_icons)"

Issue fork extlink-3342433

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

fabiansierra5191 created an issue. See original summary.

fabiansierra5191’s picture

Status: Active » Needs review
StatusFileSize
new7.4 KB

jidrone’s picture

It is working fine and it makes sense based on the explanation found at https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attribut...

tyler36’s picture

Status: Needs review » Reviewed & tested by the community
StatusFileSize
new12.96 KB
new12.79 KB
new5.75 KB

Works well on Drupal `10.0.3`

## Test

1. Enable module
2. Add external Link field to Article node.
3. Create new article with external link.
4. Confirm code has aria-hidden="false" in DEV-TOOLS

5. Visit `/admin/config/user-interface/extlink` and enable setting.

6. Flush cache.
7. Visit article and confirm code has aria-hidden="true" in DEV-TOOLS

chris matthews’s picture

Version: 8.x-1.7 » 8.x-1.x-dev
anybody’s picture

Status: Reviewed & tested by the community » Needs work

Thanks, conflicts need to be resolved now.

Chandreshgiri Gauswami made their first commit to this issue’s fork.

chandreshgiri gauswami’s picture

Status: Needs work » Needs review

Resolved conflicts.

bernardm28’s picture

Status: Needs review » Reviewed & tested by the community

It works as expected. Thanks for the MR.

anybody’s picture

Status: Reviewed & tested by the community » Fixed

Thanks, merged into dev!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.