Closed Bug 1851735 Opened 10 months ago Closed 9 months ago

The chevron button in shopping-details summary is not labeled

Categories

(Firefox :: Shopping, defect, P1)

Desktop
All
defect

Tracking

()

VERIFIED FIXED
119 Branch
Accessibility Severity s2
Tracking Status
firefox119 --- verified

People

(Reporter: ayeddi, Assigned: ayeddi)

References

(Blocks 1 open bug)

Details

(Keywords: access, Whiteboard: [fidefe-shopping])

Attachments

(1 file)

Preconditions:

  • Set the browser.shopping.experience2023.enabled - TRUE
  • Set the browser.shopping.experience2023.optedIn - 1
  • Enable a screen reader, i.e. NVDA on Windows

STR:

  1. Reach the following links https://www.amazon.com/dp/B07V6ZSHF4?th=1
  2. Hover the mouse cursor over either How we determine review quality chevron button or Settings chevron button
  3. Navigate to the How we determine review quality collapsed button (i.e. by using Tab), then press DownArrow to hear the announcement for the chevron button. Repeat for Settings chevron button

Expected:

  • The label (adjacent text) should be read out loud by NVDA alongside the role of the button
  • Either the chevron button is not announced by a screen reader (because the label, role, and state are already announced by the focusable <summary> element) or the button provides a meaningful label

Actual:

  • The button is not announced by a screen reader.
  • When navigated to in browsing mode, an extra control is announced as button, collapsed, button
Priority: -- → P1

:ayeddi - any chance you're available to address this?

(In reply to Jonathan Epstein from comment #1)

:ayeddi - any chance you're available to address this?

I actually have the patch in progress, finishing adding tests for the button. Should be in Phab for reviews soon.

While the button is included in the <summary> element, it is still can be accessed in screen reader's browse mode or with the mouse tracking (by hovering over the button with NVDA, for example). We need to make sure the button is clearly labelled and does communicate its expanded/collapsed state programmatically, since we're exposing this control on-screen.

Assignee: nobody → ayeddi
Status: NEW → ASSIGNED
See Also: → 1853208
Attachment #9352290 - Attachment description: WIP: Bug 1851735 - Adding accessible name and expanded state to the chevron button on Shopping cards. r=Jamie → Bug 1851735 - Adding accessible name to the chevron button on Shopping cards. r=Jamie
Attachment #9352290 - Attachment description: Bug 1851735 - Adding accessible name to the chevron button on Shopping cards. r=Jamie → Bug 1851735 - Adding accessible name to the chevron button on Shopping cards. r=jhirsch
Pushed by ayeddi@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/4d8c9e2984f4
Adding accessible name to the chevron button on Shopping cards. r=shopping-reviewers,jhirsch
Status: ASSIGNED → RESOLVED
Closed: 9 months ago
Resolution: --- → FIXED
Target Milestone: --- → 119 Branch
Flags: qe-verify+

Hi @Anna, I tried to verify this fix in build 20230919201806 and 20230920005018 but NVDA still wont read the Chevrons from How we determine review quality or Settings on Hover.
Reaching the Labels with the Tab key and then hitting the Down arrow they are being read as collapsed or expanded buttons.

Flags: needinfo?(ayeddi)

(In reply to Rares Doghi, Desktop QA from comment #6)

Hi @Anna, I tried to verify this fix in build 20230919201806 and 20230920005018 but NVDA still wont read the Chevrons from How we determine review quality or Settings on Hover.
Reaching the Labels with the Tab key and then hitting the Down arrow they are being read as collapsed or expanded buttons.

Rares, thank you for testing it.

Unfortunately, this appears to be NVDA behavior for buttons that do not have inner text (and rely on a CSS-provided images for a label) - this behavior is the same in other browsers too, i.e. while using the following test case and hovering either buttons:
data:text/html,<div id="1">How we determine review quality?%20%20%20%20%20 <button style="height:3rem;width:3rem;" aria-labelledby="1"></button>%20 </div><p>something else</p><button style="height:3rem;width:3rem;" aria-label="1000"></button>. These buttons are adjacent to the section headings and users who rely on hover usually have some vision, thus this would not block their flow as the adjacent text is provided (and buttons are now labeled should these users want to navigate to them using screen reader provided list of buttons, for instance).

Important part is that these buttons now have accessible names (are not unlabeled) and would not be confusing a user what would they do if activated. I would vote to mark the bug as Verified, because we do provide all we should to the screen reader.

Flags: needinfo?(ayeddi)
Flags: needinfo?(rdoghi)

Got it, I will mark it verified because they are being read if we reach them with keyboard navigation, this seems to be an NVDA issue. Thanks Anna

Status: RESOLVED → VERIFIED
Flags: qe-verify+
Flags: needinfo?(rdoghi)
See Also: → 1854153
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: