-
Bug
-
Resolution: Fixed
-
High
-
9.4.0, 8.5.20
-
Severity 3 - Minor
-
-
CtB - Improve Existing
-
Accessibility
Issue Summary
The "Cancel" interactive element is defined as a link instead of a button.
Steps to Reproduce
- Open the Confluence DC instance.
- Navigate to the header section, activate the "Spaces" control, and open any space.
- In the main content area, open any existing page and activate the "Edit" control.
- In the Toolbar, select "Insert more content" and then click on "Other macros".
- In the Search form field, type "Redirect", then activate the "Redirect" control to open the modal dialog.
- Navigate to the mentioned interactive element and inspect the code.
- Notice that it is defined using the <a> element instead of the <button> element.
Screen Recording
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