Uploaded image for project: 'Crowd Data Center'
  1. Crowd Data Center
  2. CWD-5859

Groups : Form elements must have labels

XMLWordPrintable

      Issue Summary

      The label is not provided for the "Search" form field

      Steps to Reproduce

      1. Open the home page
      2. Navigate to the "Groups" link and activate it
      3. Turn on the screen reader and navigate to the "Search” form field.

      Actual Results

      The form field such as "Search" does not have a label associated with it and the title attribute is not included in its source code either. As a result, users with visual impairments who use a screen reader will not be able to understand the purpose of the input fields.

      Expected Results

      A visible label such as “Search” should be provided for the respective input field using the <label> element. Additionally “for“ and “id” attribute should be used to associate the label with its corresponding input field.

      Note: Before implementing any visual label please connect with the content design team to take a suggestion/approval from them per business logic.

      Code snippet

      <label class="Field__Label-vqybw1-1 ghWQGY" id="Search-uid4-label" for="Search-uid4">Search</label> <input id="Search-uid4" data-test="search-filter" name="search" class="css-k60tcv" value=""> 

      Alternatively,

      Provide a descriptive label using the “Search” using the “aria-label” attribute in the <input> element.

      <input data-test="search-filter" name="search" class="css-k60tcv" value="" aria-label="Search">

      Screenshot

      Workaround

      Not Available

      Bug Ref: 360147

        1. Screenshot 2022-11-03 at 1.14.43 PM.png
          472 kB
          Rahil Shaikh
        2. Screenshot 2023-05-10 at 3.20.33 PM.png
          477 kB
          Rahil Shaikh

              a955dc6cda19 Oleksandr Stoliar
              12b69dcabe29 Matthew Brennan
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: