[PM-2871] Submenu UI elements cannot be accessed by keyboard navigation when screen reader is active (#8357)

* [PM-2871] Submenu UI elements cannot be navigated through keyboard when screen reader is active

* [PM-2871] Adding an aria-hidden value to menu divider elements
This commit is contained in:
Cesar Gonzalez 2024-04-02 15:41:59 -05:00 committed by GitHub
parent 7ea717aa5d
commit f87286b1df
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 0 deletions

View File

@ -1,4 +1,5 @@
<div <div
class="tw-my-2 tw-border-0 tw-border-t tw-border-solid tw-border-t-secondary-500" class="tw-my-2 tw-border-0 tw-border-t tw-border-solid tw-border-t-secondary-500"
role="separator" role="separator"
aria-hidden="true"
></div> ></div>

View File

@ -88,6 +88,7 @@ export class MenuTriggerForDirective implements OnDestroy {
} }
this.destroyMenu(); this.destroyMenu();
}); });
this.menu.keyManager.setFirstItemActive();
this.keyDownEventsSub = this.keyDownEventsSub =
this.menu.keyManager && this.menu.keyManager &&
this.overlayRef this.overlayRef