10up / component-library

A library of barebones front-end components built with WordPress and accessibility in mind.
https://baseline.10up.com/
MIT License
58 stars 11 forks source link

aria-expanded value not getting updated on openSubmenu and closeSubmenu callbacks. #106

Open ajmaurya99 opened 2 years ago

ajmaurya99 commented 2 years ago

Describe the bug The Aria Expanded value is not getting updated when clicked on another menu items.

To Reproduce Steps to reproduce the behavior:

  1. Open the Navigation dropdown menu item.
  2. Click on the sibling menu item.
  3. The aria-expanded value remains unchanged and is not updated based on the openSubmenu and closeSubmenu callbacks.

Expected behavior The aria-expanded value of the anchor element should be updated based on the openSubmenu and closeSubmenu callbacks

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Mobile (please complete the following information):

Additional context Please list more relevant information here.