diff --git a/src/app/checklists/checklist-tree/checklist-tree.component.html b/src/app/checklists/checklist-tree/checklist-tree.component.html index 2bf6578..c289761 100644 --- a/src/app/checklists/checklist-tree/checklist-tree.component.html +++ b/src/app/checklists/checklist-tree/checklist-tree.component.html @@ -11,11 +11,13 @@ - - + @@ -40,6 +42,7 @@ *matTreeNodeDef="let node; when: hasChild" id="group_{{ node.groupIdx }}" [attr.aria-label]="(node.isAddNew ? '' : 'Group: ') + node.title" + level="0" checklistDrag [checklistDragNode]="group" cdkDragLockAxis="y" diff --git a/src/app/checklists/checklist-tree/checklist-tree.component.scss b/src/app/checklists/checklist-tree/checklist-tree.component.scss index 47f7fd0..5e6e762 100644 --- a/src/app/checklists/checklist-tree/checklist-tree.component.scss +++ b/src/app/checklists/checklist-tree/checklist-tree.component.scss @@ -8,23 +8,11 @@ display: none; } -.checklist-tree ul, -.checklist-tree li { - margin-top: 0; - margin-bottom: 0; - list-style-type: none; +.checklist-tree .checklist-node { + display: block; } -/* - * Padding for leaf nodes. - * Leaf nodes need to have padding so as to align with other non-leaf nodes - * under the same parent. - */ -.checklist-tree div[role='group'] > .mat-tree-node { - padding-left: 20px; -} - -.checklist-tree .mat-tree-node:hover { +.checklist-tree .checklist-node:hover { background-color: gray; }