aem-core-cif-components icon indicating copy to clipboard operation
aem-core-cif-components copied to clipboard

[Accessibility] [Cart Trigger] Cart information (# of items or empty) is not communicated to screen reader users

Open LevelAccessA11y opened this issue 4 years ago • 3 comments

Steps to Reproduce

  1. Enable NVDA screen reader.
  2. Open page in Google Chrome.
  3. Navigate to cart trigger buttons using TAB or SHIFT + TAB.
  4. Notice the identical name announcements despite differing cart states.

Current Behavior The cart trigger buttons use an aria-label attribute to identify their accessible name. The aria-label attribute overrides the content of the button, so the text within the button that identifies the number of items in the cart is not announced to screen reader users.

Expected behavior/code Authors should ensure that any information revealed to sighted users is also available to screen reader users. The number of items in the cart should be included in the accessible name.

Environment Chrome 92, Windows 10, NVDA 2020.4 AEM Core Components v. 2.17

Affected Users Without Vision; Limited Vision; Limited Manipulation

WCAG SC 2.4.6 Headings and Labels

Possible Solution Communicate the cart state by adding the number of items to the aria-label, or by removing the aria-label and adding the cart label to a visually-hidden element within the button.

LevelAccessA11y avatar Aug 27 '21 00:08 LevelAccessA11y

@adobe export issue to Jira project SITES

richardhand avatar Sep 01 '21 15:09 richardhand

:white_check_mark: Jira issue SITES-2525 is successfully created for this GitHub issue.

github-jira-sync-bot avatar Sep 01 '21 15:09 github-jira-sync-bot

Tracked via CIF-2360

mhaack avatar Sep 07 '21 14:09 mhaack