preline
preline copied to clipboard
Modal keyboard navigation (tab/shift+tab) not working correctly
Summary
The modal component has inconsistent keyboard navigation behavior
Steps to Reproduce
- Open any modal containing form elements e.g. User Profile Create Event
- Try to navigate through elements using Tab key
- Try to navigate backwards using Shift+Tab
- Try to tab through select fields
Demo Link
https://preline.co/pro/examples/modals-add-create-forms.html
Expected Behavior
- Users should be able to tab forward through ALL focusable elements (inputs, selects, buttons etc.)
- Users should be able to tab backwards using Shift+Tab
- Tab order should follow a logical sequence
- Behavior should comply with WCAG keyboard accessibility guidelines
Actual Behavior
- Can only tab forward through some input fields
- Cannot tab backwards at all
- Some fields you cannot tab into at all, and then you cannot tab backwards, so you're stuck
Screenshots
No response
I have the same issue. Tab works to cycle forward through controls, but shift+tab does not cycle backwards. Also, get stuck on certain inputs. Quite frustrating
@UnlockQA, @P00HB33R - we've just released v3.2 Preline UI which addresses this issue and includes new Accessibility Manager to handle advanced accessibility cases. You may learn more here: https://preline.co/docs/accessibility.html