Uploaded image for project: 'Nuxeo Web UI'
  1. Nuxeo Web UI
  2. WEBUI-558

Add an href attribute to nuxeo-selection-toolbar links

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 3.0.6
    • Fix Version/s: 3.0.8
    • Component/s: A11y

      Description

      related to WCAG 2.1 level A criteria 2.1.1: Keyboard
      https://www.w3.org/TR/WCAG21/#keyboard

      The link does not have an href value defined.

      Elements:

      • "Display Selection" link
      • "Clear" link

      Location:

      • "Selection Toolbar"

      Steps to reproduce:
      1. Hover on an item in the "Search result" section, for example, "Home water damage - test"
      2. "Select" icon appears
      3. Activate the "Select" icon button
      4. A toolbar appears towards the top of the page, with message "1 item(s) selected" and additional controls.

      The links do not have an href value, and thus do not receive the keyboard focus and are not accessible using the keyboard alone.

      Recommendation to fix
      RULE :
      Links MUST have an href attribute.

      HOW TO FIX:
      Fix this issue by providing an HREF value (even if JavaScript event handlers are used) for the link. (Note: Ensure that if JavaScript event handlers are used, they allow the link to be activated with the Enter key in addition to mouse click.)

      <a href=quickview.html">Quick view</a>

      <a href="javascript:void(0);">Quick view</a>

      REFERENCE:
      Deque University: https://dequeuniversity.com/class/semantic-structure2/links/designate-links-correctly
      W3C HTML5 Recommendation: https://www.w3.org/TR/html52/textlevel-semantics.html#the-a-element

      BACKGROUND:
      Links made from <a> elements must have an href attribute to be valid hyperlinks. Without an href attribute, screen readers will not know that the text within the <a> element is a hyperlink and it will not be keyboard focusable.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 10 minutes
                  10m

                    PagerDuty

                    Error rendering 'com.pagerduty.jira-server-plugin:PagerDuty'. Please contact your Jira administrators.