diff --git a/xwiki-platform-core/xwiki-platform-bootstrap/src/main/less/dropdowns.less b/xwiki-platform-core/xwiki-platform-bootstrap/src/main/less/dropdowns.less index 542c00461adc..6408b8802768 100644 --- a/xwiki-platform-core/xwiki-platform-bootstrap/src/main/less/dropdowns.less +++ b/xwiki-platform-core/xwiki-platform-bootstrap/src/main/less/dropdowns.less @@ -60,9 +60,18 @@ .divider { .nav-divider(@dropdown-divider-bg); } + + // Dividers within the dropdown with an improved semantic representation + li:has(> ul) + li:has(> ul) { + border-top: solid 1px @dropdown-divider-bg; + padding-top: ((@line-height-computed / 2) - 1); + } + li:has(> ul):has(+ li > ul) { + margin-bottom: ((@line-height-computed / 2) - 1); + } - // Links within the dropdown menu - > li > a { + // Links within the dropdown menu and submenus + > li > a, > li > ul > li > a { display: block; padding: 3px 20px; clear: both; diff --git a/xwiki-platform-core/xwiki-platform-livedata/xwiki-platform-livedata-webjar/src/main/tests/unit/LivedataDropdownMenu.spec.js b/xwiki-platform-core/xwiki-platform-livedata/xwiki-platform-livedata-webjar/src/main/tests/unit/LivedataDropdownMenu.spec.js index d57e3ba276d1..a956fbf04fe7 100644 --- a/xwiki-platform-core/xwiki-platform-livedata/xwiki-platform-livedata-webjar/src/main/tests/unit/LivedataDropdownMenu.spec.js +++ b/xwiki-platform-core/xwiki-platform-livedata/xwiki-platform-livedata-webjar/src/main/tests/unit/LivedataDropdownMenu.spec.js @@ -56,12 +56,13 @@ function initWrapper() { // Since the