Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed Overflow action button not announcing view chagnes #8721

Merged
merged 2 commits into from
Oct 26, 2023

Conversation

jwoo-msft
Copy link
Member

@jwoo-msft jwoo-msft commented Oct 26, 2023

Related Issue

Fixed #8654.

Description

As focus is moved to a menu overlay from a button, buttons aria-expanded state is not announced by voice over. moved the aria-expanded to menu item itself, where the focus is set. When menu item closes, have the focus to be back on the button with aria-expanded set to false. however, with keyboard navigation, when 'return' key is used to close the menu item, it will trigger click event on the button when the focus is back to the button. In order to stop such behavior, preventDefault() was used.

Sample Card

N/A

How Verified

Manually verified.

@jwoo-msft jwoo-msft enabled auto-merge (squash) October 26, 2023 16:58
@jwoo-msft jwoo-msft merged commit 0f0a19a into main Oct 26, 2023
@jwoo-msft jwoo-msft deleted the jwoo/js-aria-expanded branch October 26, 2023 18:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants