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

[Accessibility][Mini Cart] Kebab menus cannot be dismissed with keyboard

Open LevelAccessA11y opened this issue 4 years ago • 3 comments

Steps to Reproduce

  1. Press TAB key to move focus to Kebab icon button.
  2. Press Enter to activate the menu.
  3. Press the ESC key to try to dismiss the menu.
  4. Observe the menu cannot be dismissed with keyboard alone without making a selection from the menu.

Current Behavior When a kebab menu is expanded (e.g. the Edit Item / Remove Item options next to the item name, or the Remove Coupon option next to the "Coupon [coupon name] applied" text), it cannot be dismissed without selecting an option. Sighted keyboard users cannot see the content that is beneath the expanded menu.

Expected behavior/code The menu should be dismissible with the ESC key and should disappear once focus moves away from the component.

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

Affected Users Sighted keyboard-only users

WCAG SC 2.1.1 Keyboard

Screenshot 35_menu-not-keyboard-dismissible

Possible Solution Consider using the WAI-ARIA Authoring Practices Menu Button design pattern (https://www.w3.org/TR/wai-aria-practices-1.1/#menubutton), implementing all expected roles, states, properties, and keyboard interactions.

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

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

Tracked via CIF-2355

mhaack avatar Sep 07 '21 14:09 mhaack