Issue Summary

      The label "Attachment (Optional)" is not announced by the screen reader when the "browse" element is focused.

      Steps to Reproduce

      1. With screen reader turned on, navigate to "Service Project" page.
      2. Navigate to "browse" element and observe label "Attachment (Optional)" is not announced by screen reader.

      Actual Results

      While navigating with screen reader, when user navigate to the "browse" input field the visual label "Attachment (Optional)" is not announced by the screen reader to their users. The label is not associated correctly with the input field in the code.

      This makes screen reader users difficult to understand the purpose of the input field effectively.

      Screenshot

      Expected Results

      When user tabs into the input field the corresponding visual label should be announced by the screen reader. For that the label & input fields must be associated with each other programmatically via for/id attributes.

      Ensure that the value of "for" attribute provided to "Attachment (Optional)" label match with the value of "id" attribute of "browse" input field.

      Code snippet:

      <label class="field-label" for="request-attachment" id="attachment-label">Attachment <span class="vp-optional">(optional)</span></label>
      <input tabindex="0" type="file" multiple="multiple" name="attachment" id="request-attachment" class="attachment-control">

      Workaround

      Currently there is no known workaround for this behavior. A workaround will be added here when available

            [JSDSERVER-12323] Service project page : Label not announced by screen reader.

            Divyanshi made changes -
            Remote Link New: This issue links to "Page (Confluence)" [ 912207 ]
            Martin Ma made changes -
            Resolution New: Fixed [ 1 ]
            Status Original: Waiting for Release [ 12075 ] New: Closed [ 6 ]
            Martin Ma made changes -
            Fix Version/s New: 5.10.0 [ 105347 ]
            Dhanapal Mohanasamy made changes -
            Remote Link New: This issue links to "Page (Confluence)" [ 783235 ]
            Yufei Zuo made changes -
            Remote Link New: This issue links to "Page (Confluence)" [ 780923 ]
            Matthew Brennan made changes -
            Labels Original: 1.3.1 AXSR-60 Level-A ax-at-JAWS ax-at-NVDA ax-at-VO ax-customer-escalated ax-esc-ssa ax-jsm ax-macos-safari ax-medium-priority ax-qa ax-qa-prioritised ax-triaged ax-windows-chrome ax-windows-firefox New: 1.3.1 AXSR-60 Level-A ax-at-JAWS ax-at-NVDA ax-at-VO ax-bug ax-customer-escalated ax-esc-ssa ax-jsm ax-macos-safari ax-medium-priority ax-qa ax-qa-prioritised ax-triaged ax-windows-chrome ax-windows-firefox
            Jim Alexander made changes -
            Status Original: In Review [ 10051 ] New: Waiting for Release [ 12075 ]
            Jim Alexander made changes -
            Status Original: In Progress [ 3 ] New: In Review [ 10051 ]
            Jim Alexander made changes -
            Status Original: Ready for Development [ 10049 ] New: In Progress [ 3 ]
            ssuryavanshi (Inactive) made changes -
            Attachment New: Screenshot 2023-06-15 at 6.57.30 PM.png [ 439747 ]

              fb78834a366d Jim Alexander
              beeebe6f29a3 Siddharaj Suryavanshi
              Affected customers:
              0 This affects my team
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: