Problem/Motivation
This issue was brought up by JayDarnell in #2896323: Expand primary menu processing options. There are a couple of places in the USWDS-processed menus where a menu item is treated as an "accordion button", which opens up a list of the child items beneath it. But because clicking it only shows/hides the children, there is no way to follow the menu link itself.
Proposed resolution
Provide an optional setting that will duplicate these accordion button links as the first item in the list of children below them. It should be possible to turn on/off this behavior for both the mobile menu and the primary menu (which are the two places where the accordion behavior can occur in the menus).
Remaining tasks
Write and review patch.
User interface changes
New options in theme settings.
Comment | File | Size | Author |
---|---|---|---|
#2 | uswds-d8-automatically_duplicate-2896805-2.patch | 5.01 KB | brockfanning |
#2 | uswds-d7-automatically_duplicate-2896805-2.patch | 2.37 KB | brockfanning |
Comments
Comment #2
brockfanning CreditAttribution: brockfanning commentedComment #4
brockfanning CreditAttribution: brockfanning commentedComment #7
brockfanning CreditAttribution: brockfanning commented@JayDarnell: I needed to merge these in order to move on to the next ticket, but feel free to still provide any feedback here. They seemed to work as expected.