Project issues: The "Add" button receives screen reader focus when disabled and announced inappropriately.

XMLWordPrintable

    Issue Description

    In the “Add comment“ section, for the “Add” button link element, the screen reader receives focus even when there is no text in the input field to submit and the link is in the disabled state.

    Platform: Jira DC

    Version: 8.22.1

    Steps to Reproduce

    1. Navigate to the main content area keeping the screen reader on, Navigate to the “Add comment“ link and activate it.
    2. In the “Add comment” section navigate to the Add button link without typing anything into the input field.

    Screen Recording

     
    Screen Recording 2022-03-29 at 6.15.53 PM.mov
     

    Actual Behaviour

    In the “Add comment“ section, for the “Add” button link element, the screen reader receives focus even when there is no text in the input field to submit and the link is in the disabled state. On activating the comment section is closed which is not functionality-wise correct. Additionally, it announces “Dimmed“ to the voice-over instead of “Disabled“ which will confuse the screen reader user.

    Expected Result

    The “Add“ link should not receive keyboard as well as screen reader focus, in additionally it should be announced as “Button Disabled“. The button link should not get activated since it is disabled. An aria-disabled could be given to the element so that its state indicates that the element is perceivable but disabled, so it is not editable or otherwise operable.

      1. Screen Recording 2022-03-29 at 6.15.53 PM.mov
        5.44 MB
        Matthew Brennan
      2. Screen Recording 2022-03-29 at 6.15.53 PM (1).mov
        5.44 MB
        Matthew Brennan
      3. after_fix.png
        1.41 MB
        Oleksandr Zghonnyk
      4. QA JRASERVER-74372.png
        1.54 MB
        Akhilesh Paradhi
      5. QA JRASERVER-74372.mov
        21.90 MB
        Akhilesh Paradhi

            Assignee:
            Oleksandr Zghonnyk (Inactive)
            Reporter:
            Matthew Brennan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: