#24839 closed defect (bug) (fixed)
Twenty Twelve and Thirteen: submenu item not visible when parent item is focused
Reported by: | dannydehaan | Owned by: | lancewillett |
---|---|---|---|
Milestone: | 3.9 | Priority: | normal |
Severity: | normal | Version: | 3.6 |
Component: | Bundled Theme | Keywords: | has-patch dev-feedback |
Focuses: | ui, accessibility | Cc: |
Description
Hi All,
When i create a menu with a submenu, the submenu isn't showing when i've the focus on the parent element.
Especially for visually impaired people this is a big issue i think.
To reproduce, create a menu with submenu and navigate using the TAB button to the menu. You'll see that the submenu doesn't show up.
Attachments (9)
Change History (26)
#1
@
11 years ago
- Summary changed from Submenu not showing when parent item is focussed to Submenu not showing when parent item is focused
#2
@
11 years ago
This can only be done with Javascript. Unfortunately, we don't have the CSS4 subject selector yet. I've created a little piece of code that does exactly what we want.
As you can see, i've created 2 patches. 1 for Twenty Twelve and 1 for Twenty Thirteen because those are pached with 3.6. If this should be different, please tell me, i'll create another patch with all the changes.
#3
@
11 years ago
This is working correctly in 2014 in trunk now. But it would still be useful if it was corrected in 2012 and 2013 too for those people who have used those themes or created child themes from them.
Hope to test soon so that it can be included in 3.8.
This ticket was mentioned in IRC in #wordpress-ui by grahamarmfield. View the logs.
11 years ago
#7
@
11 years ago
Refreshed both Twenty-Twelve and Twenty-Thirteen patches, on Twenty-Thirteen, also added :focus highlighting for menu.
#9
@
11 years ago
- Focuses ui added
- Milestone changed from Awaiting Review to 3.9
- Summary changed from Submenu not showing when parent item is focused to Twenty Twelve and Thirteen: submenu item not visible when parent item is focused
This ticket was mentioned in IRC in #wordpress-themes by lancewillett. View the logs.
11 years ago
#14
@
11 years ago
Twenty Twelve patch needs some work -- the "focus" on all parent elements isn't idea because it breaks the layout a bit (entire menu moves to center). It'd also be super cool to not use jQuery here as the rest of the file is plain JavaScript.
I'll attach a patch shortly, but it's just part-way there.
I guess it depends on the theme, however I can reproduce in all the bundled themes.