App icon indicating copy to clipboard operation
App copied to clipboard

[High]: Chrome+Jaws : Screen reader: Role and label are not defined for "back" control.

Open SumitDiyora opened this issue 4 years ago • 1 comments

Action Performed:

  1. Using Chrome+JAWS, open URL: staging.new.expensify.com
  2. Navigate to Settings > Workspace > Manage members > Invite
  3. Navigate to back (<) control using the screen reader.
  4. Observe the screen reader announcement.

Expected Result:

When a role is defined appropriately for the interactive element, the screen reader user will interact with the element effectively.

Actual Result:

Role is not defined for the "back (<)". interactive element. This made it difficult for screen reader users to access the functionality associated with it. Additionally, the label is not defined for the mentioned interactive element in the source code of the page.

HTML: <div tabindex="0" class="css-1dbjc4n r-1awozwy r-1loqt21 r-1777fci r-1otgn73 r-1i6wzkk r-lrvibr" style="height: 40px; margin-right: 8px; transition-duration: 0.25s; width: 40px;"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" width="20" height="20" fill="#C6C9CA"><path d="M10.8 18l-6.6-6.6c-.8-.8-.8-1.9 0-2.6l6.6-6.6c.2-.2.6-.2.9 0l.8.8c.2.2.2.6 0 .9L6.4 10l6.1 6.1c.2.2.2.6 0 .9l-.9.9c-.2.2-.6.2-.8.1z"></path></svg></div>

Other Occurrences:

Same issue repro on PRs #8143 #8008 #8017, #8022, #8025, #8058, #8206, #8019, #8173, #8196, #8427, #8452, #7362, #8256, #8694, #8682, #8878, #9220, #9262, #9213, #9369, #9056, #9400, #9348, #9347 #9472, #9486, #9550

Similar type of issue was observed for #9266 "Download" control on chat screen.

Workaround:

Yes

Area issue was found in:

All pages of the Expensify application were a "back (<)" icon button is appearing.

Failed WCAG checkpoints

4.1.2, 1.1.1

User impact:

Screen reader users will not be made aware that these elements are buttons.

Suggested resolution:

Ensure that all the page functionality is available for all users irrespective of the device being used. Apply the following changes:

  • Specify role="button" for the 'div' element containing the "back (<)" control.
  • Provide aria-label value such as "back" for the 'div' element containing the "back (<)" control.

HTML: <div tabindex="0" role="button" aria-label="back" class="css-1dbjc4n r-1awozwy r-1loqt21 r-1777fci r-1otgn73 r-1i6wzkk r-lrvibr" style="height: 40px; margin-right: 8px; transition-duration: 0.25s; width: 40px;"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" width="20" height="20" fill="#C6C9CA"><path d="M10.8 18l-6.6-6.6c-.8-.8-.8-1.9 0-2.6l6.6-6.6c.2-.2.6-.2.9 0l.8.8c.2.2.2.6 0 .9L6.4 10l6.1 6.1c.2.2.2.6 0 .9l-.9.9c-.2.2-.6.2-.8.1z"></path></svg></div>

Platform:

  • Web
  • iOS
  • Android
  • Desktop App
  • Mobile Web

Version Number: 1.1.49-0 Reproducible in staging?: Yes Reproducible in production?: Yes Reference link: https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/button_role Issue reported by: Sumit

#7920_Role and label not defined for back control

SumitDiyora avatar Mar 31 '22 12:03 SumitDiyora

@SumitDiyora, this Monthly task hasn't been acted upon in 6 weeks; closing.

If you disagree, feel encouraged to reopen it -- but pick your least important issue to close instead.

melvin-bot[bot] avatar Jun 17 '22 19:06 melvin-bot[bot]