Bug report: users are allowed to focus a speed dial action while the action panel is hidden #11238
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
I'm submitting a ... (check one with "x")
Plunkr Case (Bug Reports)
https://stackblitz.com/edit/primeng-speeddial-demo-uhi5wr?file=src/app/app.component.html
Current behavior
Activating the speed dial with the keyboard, and pressing tab, focuses the first entry in the speed dial (correct)
The focus of the speed dial action is, however, not all that visible to the user (the demo has a black-on-black and it's really hard to see on my monitor -- this is beside the issue in this bug but just wanted to mention this)
Also, after activating the speed dial action with enter, the speed dial closes (correct); however, repeatedly pressing enter continues to activate the speed dial action item. It seems that tab index is not set to -1 when these speed dial actions are hidden (I believe they should not be tabbed to when hidden.) While tabbing, the user can change which speed dial action is activated, even while the list is hidden. Pressing enter while the list is hidden confirms this.
Expected behavior
Focus should be visible.
Tabbing should sometimes focus the speed dial actions (when open), and sometimes skip over the actions (when closed).
Minimal reproduction of the problem with instructions
Use the tab key and enter key only when operating the speed dial. You will run into usability issues described above.
What is the motivation / use case for changing the behavior?
Usability. User experience.
Please tell us about your environment:
N/A
N/A
13.0.4
FF
Language: [all | TypeScript X.X | ES6/7 | ES5]
TS
Node (for AoT issues):
node --version
=N/A
edits
The text was updated successfully, but these errors were encountered: