-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Accordion: Accessibility issues using keyboard navigation on accordion with form-elements inside (v16) #13488
Comments
For your second point I cannot reproduce the error on version 16.2. If an accordion tab is collapsed and I press |
That's strange - the Stackblitz I've uploaded is 16.2.0, and the issue still persists. When the first tab is focused, and I press tab, I need to press tab 3 times in order to properly focus the second tab. |
Note that Issue 1 still doesn't work with PrimeNG v.16.9.1. I've updated the Version in the following example: While the second problem is solved, one still cannot navigate inside the dropdown menu of the second accordion panel using the arrow keys. The focus jumps to the first accordion panel's header. |
Does anyone know about a workround for this issue? |
Fixed in v17: https://stackblitz.com/edit/ejdody?file=src%2Fapp%2Faccordion-basic-demo.html,src%2Fapp%2Faccordion-basic-demo.ts Also, a fix will be provided for v16-lts |
@cetincakiroglu how would that work with a nested button inside the accordion header? If tabbing to the button and hitting return, the accordion is collapsing/expanding: The only workaround I can think of is to capture all Is this a separate issue? |
This issue has been automatically marked as stale. If this issue is still affecting you with the latest version, please leave any comment, and we will keep it open. We are sorry that we have not been able to prioritize it yet. If you have any new additional information, please include it with your comment! |
Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please create a new issue with up-to-date information. Thank you for your understanding! |
Describe the bug
When placing form elements such as
input-number
,cascade-select
, andmulti-select
inside the Accordion panels, the keyboard controls (specifically the up and down arrow keys) do not function correctly.After, i.e., selecting the CascadeSelect and expanding it using
enter
, I cannot press the down arrow key to get to the options. Instead, the first Accordion Panel gets selected.Related to this: Focusable elements inside collapsed accordion panels are also highlighted if I navigate with the tab key. From my point of view, that makes no sense. At the moment, I developed a workaround to change tabIndex on content within hidden panels to 1, but this should be the default behavior I suppose.
So to sum it up:
Environment
Windows 10
Reproducer
https://stackblitz.com/edit/fcgd4a?file=src%2Fapp%2Fdemo%2Faccordion-basic-demo.ts,src%2Fapp%2Fdemo%2Faccordion-basic-demo.html
Angular version
16.2.0
PrimeNG version
16.2.0
Build / Runtime
Angular CLI App
Language
ALL
Node version (for AoT issues node --version)
16.0.2
Browser(s)
No response
Steps to reproduce the behavior
MultiSelect
orCascadeSelect
using spacebar / entertab/arrow
Expected behavior
The text was updated successfully, but these errors were encountered: