Find an issue : Error message difficult to locate (Modals)

XMLWordPrintable

      Issue Summary

      On "Find an issue" page, the error messages are difficult to locate in "Permission helper" and "Notification helper" modal.

      Note : This issue is found on "Basic" and "Advanced" mode.

      Steps to Reproduce

      1. Open any project. 
      2. Activate "Issues" button in the header section and select "Search for issues" option.
      3. Activate Actions button.
      4. Activate "Permission helper" or "Notification helper" buttons.
      5. Activate "Submit" button without filling "User" mandatory fields. 
      6. Observe that the error message appear below mandatory form field.
      7. Observe that the error messages are not announced for screen reader users.

      Screenshot

      Actual Results

       
      When user activates "Submit" button by keeping mandatory field empty, error message "Please select a user" get dynamically displayed below the form field and user's focus remains on "Submit" button.
       
      As a result, screen reader users are unaware about the occurrence of errors.

      Expected Results

      User's focus should be set on the first form field with error. Additionally, the screen reader should announce the error messages when users navigate to the respective form fields.

       
      Apply the following changes:

      • Add 'aria-describedby' attribute to the form field.
      • Reference 'id' attribute value of the containner used to display the error message to 'aria-describedby' attribute.
      • Set focus on the first field with error using the JavaScript .focus() method as soon as the form is submitted.

       

      <label for="a1">User *</label>
      <input id="id" role="combobox" aria-describedby="usererror" aria-required="true"...>
      <div id="usererror">Please select a user</div>
      
      

      Workaround

      Not available

      Environment

      MacBook Pro (16-inch, 2021)

      macOS Sonoma Version 14.1

      Chrome - Version 119.0.6045.159 (Official Build) (arm64)

      Firefox- Version 93.0 (32-bit) Safari- Version 17.1 (19616.2.9.11.7)

      JAWS- Version 2023

      NVDA- Version 2020.3

      Voiceover - Version Latest

       

        1. image-2025-05-14-16-30-10-273.png
          521 kB
          Anish Yadav
        2. image-2025-05-14-16-41-38-019.png
          305 kB
          Anish Yadav
        3. image-2025-05-14-16-51-52-523.png
          551 kB
          Anish Yadav
        4. image-2025-05-14-16-55-07-964.png
          599 kB
          Anish Yadav
        5. Screen Recording 2025-01-21 at 5.02.35 PM.mov
          39.22 MB
          Sojal Shende
        6. Screenshot 2024-02-09 at 3.49.22 PM.png
          917 kB
          Shruti Chabukswar
        7. Screenshot 2025-01-21 at 5.20.04 PM.png
          841 kB
          Sojal Shende

            Assignee:
            Unassigned
            Reporter:
            Shruti Chabukswar (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: