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

[Accessibility][Mini Cart] The "Enter your code" input receives keyboard focus when it is hidden by the checkout

Open LevelAccessA11y opened this issue 3 years ago • 3 comments

Steps to Reproduce

  1. Enable NVDA screen reader.
  2. Open page in Google Chrome.
  3. Use TAB to move focus to the Checkout button, then press Enter to activate it.
  4. Press Enter to activate it.or TAB + SHIFT to navigate through the checkout form.
  5. Press TAB to move focus to the "Ship To Add Shipping Information" button.
  6. Press SHIFT + TAB and observe focus moving behind the Checkout and the "Enter your code" input being announced, although it is not visible.

Current Behavior Interactive elements in the Mini Cart receive keyboard focus when they are visually obscured by the checkout form. This includes the "Enter your code" input, but if multiple items are in the cart it might also include kebab menu buttons and menu items for each item. Sighted keyboard users may find it difficult to determine where their focus is, and/or to return to the Checkout in order to dismiss it with the "Back to cart" button.

Expected behavior/code Visually hidden content should not receive keyboard focus. Ensure that when the Checkout is expanded, interactive elements behind it do not receive focus.

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

Affected Users Keyboard-only users

WCAG SC 2.4.3 Focus Order

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-2531 is successfully created for this GitHub issue.

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

Tracked via CIF-2354

mhaack avatar Sep 07 '21 14:09 mhaack