adobe / aem-core-cif-components

A set of configurations and components to get you started with AEM Commerce development
Apache License 2.0
103 stars 80 forks source link

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

Open LevelAccessA11y opened 3 years ago

LevelAccessA11y commented 3 years ago

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

richardhand commented 3 years ago

@adobe export issue to Jira project SITES

github-jira-sync-bot commented 3 years ago

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

mhaack commented 3 years ago

Tracked via CIF-2354