When using the Panels IPE to customize a page, there is no visual indicator of tab focus on the Region style or Add new pane buttons per region, nor on the Settings, Style, or Delete buttons per pane.
Using Drupal 7.28 with the following modules/themes enabled:
Chaos Tools 7.x-1.4
Page Manager 7.x-1.4
Panelizer 7.x-3.1
Panels 7.x-3.4
Panels In-Place Editor 7.x-1.4
Bartik 7.28 set as front-end theme
Seven 7.28 set as admin theme
No other contrib modules or themes are enabled.
To reproduce:
- Enable the node view page in Page Manager
- Configure Panelizer for the Basic Page content type
- Create a node of type Basic Page
- After saving, click Customize this page
- Use the Tab key to navigate through the controls on the page
- Note that the icon buttons do not highlight or otherwise change appearance when you are focused on them
- Hover over the buttons using the mouse
- Note that the appearance of the button changes
Possible solution:
Add a :focus pseudoclass along with the :hover pseudoclass on the selectors
div.panels-ipe-handlebar-wrapper li a, div.panels-ipe-dragtitle span, div.panels-ipe-newblock a, span.panels-ipe-draghandle-icon
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | panels-ipe-keyboard-focus-2280797-2.patch | 2.92 KB | cboyden |
Comments
Comment #1
cboyden commentedComment #2
cboyden commentedThis patch adds :focus pseudoclasses to all selectors in the Panels IPE CSS file where :hover pseudoclasses are added to focusable elements (links, buttons, and form controls).
There are some :hover effects being applied to non-focusable elements. For example, the divs that contain a pane and its controls have a dotted outline applied on hover. It's probably not worthwhile to make the div focusable.
Comment #3
mgiffordThis is an important element for sure. It is very common for CSS to ignore focus and to remove outline making it very difficult for keyboard only users to identify where they are.
Comment #4
dsnopekThis is a huge accessibility fix. Without it, the IPE is essentially unusable from the keyboard! Tested and it works great, code looks perfect. We're using this patch in Panopoly now!
Comment #6
japerryAgreed, this is a much needed patch, looks good to me. Fixed!