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

Improve accessibility social buttons, move onClick from li element to link element a

Details

    Description

      Description: A client is complying about an accessibility issue we have inside Asset publisher when activating the share on social media button. The problem they complain about is that we add the onClick action on the li element, and it should always be on a button or link, which are accessible by keyboard action. As a result is breaking: https://www.w3.org/WAI/WCAG21/Techniques/client-side-script/SCR35.html

      Steps:
      1. Add an asset publisher to a page, be sure you have some web contents created
      2. Open configuration of asset publisher go to Display Settings -> SOCIAL BOOKMARKS (add Facebook, Twitter and LinkedIn)
      3. Close the configuration and inspect the Facebook button (see the HTML DOM)

      Actual: The onClick is added to the li element and it should be added to the a element

      Expected: The onClick is added to the a element

      Attachments

        Issue Links

          Activity

            People

              support-lep@liferay.com SE Support
              georgel.pop Georgel Vasile Pop
              Enterprise Release HU Enterprise Release HU
              Georgel Vasile Pop Georgel Vasile Pop
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                24 weeks, 2 days ago

                Packages

                  Version Package
                  7.2.X
                  7.3.X
                  7.4.3.22 CE GA22
                  Master