Opened 12 years ago
Closed 12 years ago
#28835 closed defect (bug) (fixed)
Customizer - Add a Widget - Focus gets lost
| Reported by: | GrahamArmfield | Owned by: | SergeyBiryukov |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.0 |
| Component: | Customize | Version: | 4.0 |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: | accessibility |
Description
There are a couple of keyboard focus issues around the Add a Widget button in Customizer > Widgets.
I'm noticing different behaviours on Chrome 35 and Firefox 30 - both running on Windows 7 64 bit.
In Chrome 35:
- Tab to Appearance > Customize > Widgets > Any Widget Area
- Tab to the Add a Widget Button and press Enter
- Focus is now clearly within Search widgets box of the extra panel.
- Press Shift + Tab to tab back to Add a Widget button and Press Enter.
- Focus has now gone somewhere unexpected and then appears at bottom of site page being shown in Customizer
Expected result:
I would expect the focus to stay on the Add a Widget button.
In Firefox, a slightly different result appears.
- Tab to Appearance > Customize > Widgets > Any Widget Area
- Tab to the Add a Widget Button and press Enter
- Focus is now clearly within Search widgets box of the extra panel.
- Press Shift + Tab to tab back to Add a Widget button and Press Enter.
- Focus is now at bottom of site page being shown in Customizer
Expected result:
I would expect the focus to stay on the Add a Widget button.
Attachments (5)
Change History (11)
This ticket was mentioned in IRC in #wordpress-dev by celloexpressions. View the logs.
12 years ago
#5
@
12 years ago
Per IRC, 28835_5.patch is good to go. However, the patch may be mis-formatted or something - it doesn't apply for me. Manually merging and testing it, it works as expected.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
The add-widgets panel html is at the end of the page, so we'll need to auto-focus when going out of that panel just like we do going into it. Should probably return to the add-widget button from both the top and the bottom of that panel.