Problem/Motivation
Secondary menu toggles all have the same text: "Toggle sub-navigation", which doesn't describe the purpose as well as it could for the following reasons:
- Depending on the assistive tech used, the toggle may not be associated by the user with the menu item that is next to it. Only sighted users are assured to know that the toggle is associated with "articles" in some capacity

You can reference the menu toggles at https://www.adobe.com/. Unlike Olivero, these are visible, but the same principle applies - the button text should inform the user/assitive-tech of what it will be toggling.
Proposed resolution
Use different names for the top level buttons. Use the link name, and append " sub-navigation". Note the hyphen.
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
| Comment | File | Size | Author |
|---|---|---|---|
| #10 | 3190140-8.patch | 833 bytes | nmorin |
| #5 | Screenshot_2_20_21__1_57_PM.png | 114.35 KB | mherchel |
| #4 | 3190140.patch | 827 bytes | nmorin |
| Screen Shot 2020-12-28 at 2.54.35 PM.png | 8.84 KB | bnjmnm |
Comments
Comment #2
andrewmacpherson commentedThat was a red herring. I've closed #3190137: Refactor aria implementation of collapsible nav, so I'm removing references to that from this issue summary.
The navigation at adobe.com isn't a good match for what we're building. That navigation consists of a row of buttons only. However, we have alternating links and buttons.
The button name I would suggest is "top-level-link-namesub-menu". So there would be a link called "articles", followed by a button called "articles sub-menu".
Comment #3
mherchelComment #4
nmorin commentedPatch attached
Comment #5
mherchelThis looks perfect. Screenshot attached!
Comment #7
mherchelDisregard this comment
Comment #8
alexpottDiscussed this with @andrewmacpherson and @lauriii. We debated the use of the word "sub-menu". There was discussion about whether this was a menu or collection of links in a navigation. And also of sub-menu vs submenu. Believe it or not submenu is in the dictionary. See https://www.merriam-webster.com/dictionary/submenu - and has usage in https://www.smashingmagazine.com/2017/11/building-accessible-menu-systems/
This should either be changed to:
'@title submenu'Or
'@title sub-navigation'I think I prefer the second one because this avoids the discussion of what is a menu and this is part of the site's navigation.
Comment #9
lauriiiTagging with 'Novice' since addressing #8 would be a good task for a new contributor.
Comment #10
nmorin commentedComment #11
nmorin commentedAdded patch, '3190140-8.patch' for Comment #8
Comment #12
nmorin commentedChanged to "Needs review" after adding patch for Comment #8
(P.S. Sorry for multiple messages; Novice contributor here.)
Comment #13
mherchel#10 looks perfect. Thanks @nmorin!
Comment #14
alexpottCommitted and pushed 209dcea4fa to 9.2.x and a76c74c84e to 9.1.x. Thanks!
Backported to 9.1.x as olivero is experimental.
I removed the space between the
'and the|- I checked core and it's not normally there.