Changes for page Menu Macro
Last modified by Ruud de Jong on 2024/10/24 11:40
From version 8.1
edited by Ruud de Jong
on 2024/10/24 11:40
on 2024/10/24 11:40
Change comment:
Install extension [org.xwiki.platform:xwiki-platform-menu-ui/16.8.0]
To version 7.1
edited by Ruud de Jong
on 2024/07/13 21:59
on 2024/07/13 21:59
Change comment:
Install extension [org.xwiki.platform:xwiki-platform-menu-ui/16.5.0]
Summary
-
Objects (2 modified, 0 added, 0 removed)
Details
- XWiki.JavaScriptExtension[0]
-
- Code
-
... ... @@ -70,18 +70,6 @@ 70 70 $(dropDownHeader).next().addClass('xDropdown-menu'); 71 71 }); 72 72 73 - $('.xDropdown-menu').each(function() { 74 - this.addEventListener('keyup', function(event) { 75 - if (event.key === 'Escape') { 76 - // We change the state of the parent xDropdown 77 - this.parentNode.classList.remove('open'); 78 - // We set the focus on the toggle button of the section we just collapsed 79 - this.parentNode.querySelector(':scope > .xDropdown-header > .xDropdown-header-toggle').focus(); 80 - } 81 - event.stopPropagation(); 82 - }); 83 - }); 84 - 85 85 $('.menu-horizontal .xDropdown').each(function() { 86 86 // In case of horizontal menus, make it so that a class is added on hover, instead of using the :hover pseudo-class 87 87 this.addEventListener("mouseover", function() {
- XWiki.StyleSheetExtension[1]
-
- Code
-
... ... @@ -153,19 +153,19 @@ 153 153 margin-top: 0; 154 154 border-top-right-radius: 0; 155 155 border-top-left-radius: 0; 156 - overflow-wrap: break-word; 157 - hyphens: auto; 158 158 li { 159 159 /* Text inside menu */ 160 160 color: @dropdown-link-color; 161 - padding: 3px 20px; 162 162 /* Links inside menu */ 163 163 a { 164 164 display: block; 162 + padding: 3px 20px; 165 165 clear: both; 166 166 font-weight: normal; 167 167 line-height: @line-height-base; 168 168 color: @dropdown-link-color; 167 + overflow: hidden; 168 + text-overflow: ellipsis; // Displaying ... if the text is too long 169 169 &:hover, &:focus-within { 170 170 /* &:extend(.dropdown-menu>li>a:hover); */ 171 171 text-decoration: none;