Skip to content

XWIKI-23413: Separators in navigation tree dropdown #4403

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Aug 6, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,6 @@
.nav-divider(@dropdown-divider-bg);
}

// Dividers within the dropdown with an improved semantic representation
li:has(> ul) + li:has(> ul) {
padding-top: ((@line-height-computed / 2) - 1);
border-top: solid 1px @dropdown-divider-bg;
}
li:has(> ul):has(+ li > ul) {
margin-bottom: ((@line-height-computed / 2) - 1);
}

// Links within the dropdown menu and submenus
/* stylelint-disable selector-max-compound-selectors */
> li > a,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,4 +171,16 @@ export default {
text-align: center;
}

.livedata-dropdown-menu .dropdown-menu {
/* Dividers within the dropdown with an improved semantic representation */
li:has(> ul) + li:has(> ul) {
padding-top: calc(.5lh - 1px);
border-top: solid 1px var(--dropdown-divider-bg);
}

li:has(> ul):has(+ li > ul) {
margin-bottom: calc(.5lh - 1px);
}
}

</style>