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

bug: Arrow Keys do not seem to work with Popover #23512

Closed
RobertWeaver opened this issue Jun 25, 2021 · 2 comments
Closed

bug: Arrow Keys do not seem to work with Popover #23512

RobertWeaver opened this issue Jun 25, 2021 · 2 comments
Labels
package: core @ionic/core package type: bug a confirmed bug report
Milestone

Comments

@RobertWeaver
Copy link

RobertWeaver commented Jun 25, 2021

Bug Report

Ionic version:
[ ] 4.x
[ ] 5.x
[x] 6.x

Current behavior:
When using the keyboard to interact with the Popover the arrow keys do not move up and down the list items. Once the trigger button has focus I can open the menu with the space or enter key and then tab between the items. But up and down arrow does not work.

Expected behavior:
The documentation confirms the arrow keys should work for keyboard navigation between items.

image

https://beta.ionicframework.com/docs/api/popover#keyboard-navigation

Angular Material opens a select style dropdown with the first item already focused saving a key stroke. It would be good to have such a feature for desktop users.

image

https://material.angular.io/components/select/overview#select-form

Also the regular Angular Material Menu dropdown can navigate down to nested menus using only arrow keys.
image

https://material.angular.io/components/menu/examples#menu-icons

Steps to reproduce:
Click or set focus to a button that can open a Popover then use the tab key to focus to first item then try to use arrow keys to move up and down between items.

Related code:
CodeSandBox Demo using Ionic Custom Elements
https://codesandbox.io/s/thirsty-brook-b9lhr?file=/src/index.js

Ionic info:
Ionic 6.0.0-dev.202106232232.ceabba1

@ionitron-bot ionitron-bot bot added the triage label Jun 25, 2021
@willmartian willmartian added this to the a11y milestone Jun 25, 2021
@willmartian willmartian added the type: bug a confirmed bug report label Jun 25, 2021
@ionitron-bot ionitron-bot bot removed the triage label Jun 25, 2021
@willmartian willmartian added package: core @ionic/core package triage labels Jun 25, 2021
@ionitron-bot ionitron-bot bot removed the triage label Jun 25, 2021
@liamdebeasi liamdebeasi modified the milestones: a11y, 6.0.0 Jun 28, 2021
@liamdebeasi liamdebeasi added type: bug a confirmed bug report and removed type: bug a confirmed bug report labels Jul 16, 2021
@liamdebeasi liamdebeasi modified the milestones: 6.0.0, 6.0.0-beta.3 Jul 21, 2021
@willmartian
Copy link
Contributor

Thanks for the issue! This has been resolved and a fix will be available in the next beta release of Framework v6.

@ionitron-bot
Copy link

ionitron-bot bot commented Sep 2, 2021

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Sep 2, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
package: core @ionic/core package type: bug a confirmed bug report
Projects
None yet
Development

No branches or pull requests

3 participants