Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-72089

Accesibility: Screen readers read twice 'Opens New Window' in links generated by ATag taglib

    Details

      Description

      When we are using a screen reader to read a page where is a link generated by ATag taglib, the text 'Opens new window' is read twice.

      Looking into the taglib code, we can see the information is being duplicated in title and a span label inside the content.

      Steps to reproduce
      1.- Start Liferay (master)
      2.- Add a portlet (i.e. bookmarks)
      3.- Go to Configuration --> Sharing --> Facebook
      4.- Inspect the HTML associated to the link with text "Get the API key and canvas page URL from Facebook"

      Expected Result
      The information about the link will be opened in a new window appears once.

      Actual Result
      The information about the link will be opened in a new window appears twice:

      <a href="http://developers.facebook.com" target="_blank" title="(Opens New Window)">Get the API key and canvas page URL from Facebook. 
      	<span class="sr-only">(Opens New Window)</span>
      </a>
      

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  2 years, 28 weeks, 3 days ago

                  Packages

                  Version Package
                  6.2.X EE
                  7.0.0 DXP FP14
                  7.0.0 DXP SP3
                  7.0.3 CE GA4
                  7.0.X EE
                  7.1.X
                  Master