User tests: Successful: Unsuccessful:
Draft for #29413.
templates/cassiopeia/js/template.js
is minified via build and npm
.There is no styling. (I changed the font color so that you can read the texts.)
Apply this branch, delete the file templates/cassiopeia/js/template.min.js
and run npm ci
Add some Menu Items in different levels to the top menu. If a menu item is drop down you should set it as system link
Drop Down is ignored
Not sure
Status | New | ⇒ | Pending |
Category | ⇒ | Repository JavaScript Modules Front End NPM Change Templates (site) |
Labels |
Added:
NPM Resource Changed
?
|
@brianteeman Please see NickDJM/accessible-menu#77 (comment)
I have read it and I am personally not convinced in the benefit of adding yet another dependency
If we really call another dependency than I see rather an adobe megamenu more beneficial than that. Thats why I also tend to use BS4 with a proper styling.
I think it is a pity. I found it good because it is bootstrap independent (if you want to get away from it) doesn't use jQuery (adobe megamenu) and you still don't have to reinvent the wheel yourself.
Status | Pending | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2020-07-04 06:56:00 |
Closed_By | ⇒ | astridx |
Wow this is how the project should solve the problems, eg modular. In this case a script without any further dependencies (esp jQuery, that will be included in every page if the menu is based on the Bootstrap js) is the proper way out. Not to mention that this is really accessible (eg has key listeners for all the expected keys not just tab, which works only in non nested menus). I'm really sorry @astridx
Unless I am mistaken cassiopeia is a bootstrap 4 template. BS4 by default has an accessible dropdown menu. The problem is that the markup generated by the menu module has not been updated to that markup.
https://getbootstrap.com/docs/4.4/components/navs/