Commit a9b20c8
authored
[6.0] Refactor default frontend menu to fix submenu support and improve accessiblity (joomla#45922)
* [6.0] Fix and refactor frontend menu
- improve accessibility with aria attributes for submenus
- add keyboard navigation support for enhanced usability and accessibility
* Fix visibility of elements with aria-hidden attribute in header navigation (cassiopeia)
* Refactor submenu toggle logic and improve focus handling for keyboard navigation
* Refactor ID assignment logic for menu tag
* Move submenu toggle creation to template file to make override possible
* Remove console log statements from keydown event handling in navigation
* Improve keyboard navigation by focusing the last tabbable element in the menu on 'End' key press
* CS + lint
* Fix aria-controls attribute to support multiple values for submenu toggle buttons
* Replace span with button for submenu toggle to improve accessibility
@todo css
* Remove tabindex from submenu toggle buttons for improved accessibility
* Add aria-label for submenu toggle button to enhance accessibility
* Close all opened submenus before opening a new one in toggleSubMenu
* Restrict submenu toggle button rendering to first-level items with subitems only
* Add asset management for mod_menu and define CSS for submenu visibility
* Refactor mod-menu CSS for improved submenu styling and toggle behavior
Co-authored-by: Viviana Menzel <[email protected]>
* Refactor mod-menu CSS
* Remove paddig top for icons in menu item link rendering
* Enhance constructor to support custom settings
* Add navigation menu description to the code comments
* Update copyright year
* clean up
* lint css
* clean up
* Fix refine toggle button logic for deeper menu items for heading and separator
* Remove unused CSS comments and clean up mod-menu styles
* Remove copyright change1 parent 38f3927 commit a9b20c8
File tree
10 files changed
+319
-127
lines changed- build/media_source
- templates/site/cassiopeia/scss/blocks
- language/en-GB
10 files changed
+319
-127
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
0 commit comments