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

Menubar: Enter key moves focus at first menuitem #15040

Closed
dterola opened this issue Mar 13, 2024 · 0 comments · Fixed by #15359
Closed

Menubar: Enter key moves focus at first menuitem #15040

dterola opened this issue Mar 13, 2024 · 0 comments · Fixed by #15359
Labels
Component: Accessibility Issue or pull request is related to WCAG or ARIA Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@dterola
Copy link

dterola commented Mar 13, 2024

Describe the bug

In terms of accessibility, user uses keyboard to navigate through the page. When there is a menubar without sub-menu items, only menu items at first level, pressing enter key at any of the menu items moves the focus to the first menuitem instead of keeping it on the clicked one.

Environment

N/A

Reproducer

No response

Angular version

17.0.8

PrimeNG version

17.7.0

Build / Runtime

Angular CLI App

Language

TypeScript

Node version (for AoT issues node --version)

20.10.0

Browser(s)

All

Steps to reproduce the behavior

For example, look at the primeng documentation, https://primeng.org/menubar#basic menubar basic:

image

If users navigates with keyboard until Quit menu item, and does click on it, you will see that focus is moved to File menu item. This behavior is pretty confusing for those users that use some Screen Readers, as it will announce that the focus has been move to another element into the menu.

Expected behavior

What is expected for those menu items (first level) without sub-items is that focus keeps on the clicked menu item.

@dterola dterola added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Mar 13, 2024
@mehmetcetin01140 mehmetcetin01140 added Component: Accessibility Issue or pull request is related to WCAG or ARIA and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Mar 18, 2024
@cetincakiroglu cetincakiroglu added the Type: Bug Issue contains a bug related to a specific component. Something about the component is not working label Apr 26, 2024
@cetincakiroglu cetincakiroglu added this to the 17.15.0 milestone Apr 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Accessibility Issue or pull request is related to WCAG or ARIA Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants