Problem/Motivation

WCAG AAA Compliance issue.
F22: Failure of Success Criterion 3.2.5 due to opening windows that are not requested by the user
https://www.w3.org/TR/WCAG20-TECHS/F22.html

Steps to reproduce

Running a AAA compliance tool detects the issue.

Proposed resolution

Displaying new windows without warning can be very confusing to non-sighted and mobile users. Some screen readers and mobile devices
give very little indication a new tab or window has opened. If you cannot avoid displaying a new window, insert a warning into the link text like
the following: "opens in a new window"

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

joshua1234511 created an issue. See original summary.

joshua1234511’s picture

StatusFileSize
new4.39 KB

Attached patch for 2.0.0 Release.

guptahemant’s picture

StatusFileSize
new4.46 KB

Patch in #2 introduces following issue:

The visual label must appear in the accessible name of links and controls,
Example Visual label: Facebook share(Opens in a new tab/window) not in Opens in a new tab/window

To fix this we need to make sure aria-label attribute contains the complete text which appear in link element.

Here ia patch which builds on top of #2 to fix this issue.

guptahemant’s picture

Status: Active » Needs review
paulrad’s picture

Status: Needs review » Reviewed & tested by the community

Can confirm that #4 addresses the reported issue. Moving to RTBC

paulrad’s picture

Can any maintainer review this issue?

ameymudras’s picture

StatusFileSize
new4.51 KB

The patch #4 doesn't apply to the latest 2.x branch. I have re rolled the patch to fix the issue

ameymudras’s picture

Version: 2.x-dev » 3.x-dev
ameymudras’s picture

Status: Reviewed & tested by the community » Needs review
StatusFileSize
new4.47 KB

Re rolled the patch for the latest version

ameymudras’s picture

StatusFileSize
new4.4 KB

Updated patch