Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-99640

Insert Redirect Macro Dialog: Incorrect semantic role for interactive element

XMLWordPrintable

      Issue Summary

      The "Cancel" interactive element is defined as a link instead of a button.

      Steps to Reproduce

      1. Open the Confluence DC instance.
      2. Navigate to the header section, activate the "Spaces" control, and open any space.
      3. In the main content area, open any existing page and activate the "Edit" control.
      4. In the Toolbar, select "Insert more content" and then click on "Other macros".
      5. In the Search form field, type "Redirect", then activate the "Redirect" control to open the modal dialog.
      6. Navigate to the mentioned interactive element and inspect the code.
      7. Notice that it is defined using the <a> element instead of the <button> element.

      Screen Recording

      Cancel Control.mp4

      Actual Results

      When screen reader users navigate through the "Insert Redirect Macro" dialog, they observe that the "Cancel" interactive element is implemented as a link instead of a button.

      This issue occurs because this interactive element is coded using the <a> element instead of a <button> element.

      As a result, this interactive element may cause confusion for screen reader users regarding its role and purpose.

      Expected Results

      Ensure that the appropriate role information is conveyed to screen reader users.

      In this case, the "Cancel" interactive element should be conveyed as a button to users.

      Apply the following changes:

      • Replace the <a> element with a <button> element.
      • Modify the scripts to ensure that the button functions correctly.

      Code Snippet:

      <button>Cancel</button>

      Workaround

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

      Environment

      MacBook Pro (16-inch, 2021)
      macOS Sequoia 15.4.1
      Operations - Windows11
      Chrome - Version 135.0.7049.42 (Official Build) (64-bit)
      Safari- Version 18.4
      Firefox- Version 135.0 (64-bit)
      JAWS- Version 2023
      NVDA- Version 2024.4.2
      VoiceOver - Version Latest

        1. Cancel Control.mp4
          6.40 MB
        2. Screen Reader Announcement.mp4
          14.36 MB

              bb797b5e39e7 Judy Lim
              deddb3877943 Chirag Goyal
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: