Skip to content
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
9 changes: 9 additions & 0 deletions src/app/admin/admin-sidebar/admin-sidebar.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,15 @@
padding-bottom: var(--ds-admin-sidebar-item-padding);
}

// Remove vertical padding from the wrapper and apply it to the anchor
// In case an anchor also has .sidebar-item, reset it to avoid double padding
.sidebar-sub-level-item-list {
.sidebar-item, .ds-menu-item.sidebar-item {
padding-top: 0;
padding-bottom: 0;
}
}

// These classes handle the collapsing behavior
.sidebar-section-wrapper {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,19 @@
list-style: none;
margin: 0;
padding: 0;
::ng-deep .ds-menu-item {
margin-left: var(--ds-admin-sidebar-section-indent);
/* Make the entire sub-level row clickable by applying padding to the anchor */
::ng-deep {
/* Ensure anchors are full-width blocks */
.ds-menu-item {
display: block;
width: 100%;
padding-left: var(--ds-admin-sidebar-section-indent);
}

.sidebar-item .ds-menu-item {
padding-top: var(--ds-admin-sidebar-item-padding);
padding-bottom: var(--ds-admin-sidebar-item-padding);
}
}
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
a {
cursor: pointer;
}
}
Loading