Skip to content

Commit f8e1c0c

Browse files
committed
Checkboxes are INgit add . But styling needs to be fixed
1 parent e8d60ad commit f8e1c0c

3 files changed

Lines changed: 35 additions & 11 deletions

File tree

src/components/timeline/timeline.html

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,20 @@
55
<ng-template #recursiveList let-list>
66
<!-- <div class="cd-timeline__img cd-timeline__img--5"></div> -->
77
<ion-list *ngFor="let item of list">
8-
<h2 (click)="toggleItem(item)">{{item.title}} </h2>
9-
<ion-item *ngIf="item.itemExpand && item.children.length > 0">
10-
<ng-container *ngTemplateOutlet="recursiveList; context:{ $implicit: item.children }"></ng-container>
118

9+
<h2 *ngIf="!item.checkmark" (click)="toggleItem(item)">{{item.title}} </h2>
10+
11+
<ion-item *ngIf="item.checkmark">
12+
<ion-label>{{item.title}}</ion-label>
13+
<ion-checkbox color="dark" checked="false"></ion-checkbox>
1214
</ion-item>
15+
16+
<ion-item *ngIf="item.itemExpand && item.children.length > 0 && !item.checkmark">
17+
<ng-container *ngTemplateOutlet="recursiveList; context:{ $implicit: item.children }"></ng-container>
18+
</ion-item>
19+
<!-- <ion-item *ngIf="item.checkmark">
20+
<ion-checkbox color="dark" checked="false"></ion-checkbox>
21+
</ion-item> -->
1322
</ion-list>
1423
</ng-template>
1524
<ng-container *ngTemplateOutlet="recursiveList; context:{ $implicit: list }"></ng-container>
@@ -21,4 +30,4 @@ <h2 (click)="toggleItem(item)">{{item.title}} </h2>
2130
<ion-icon class="" [name]="endIcon"></ion-icon>
2231
</timeline-item> -->
2332

24-
</div>
33+
</div>

src/components/timeline/timeline.scss

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ timeline {
55
}
66

77
.label-ios{
8-
margin: 11px 8px -15px 0 !important;
8+
margin: auto !important;
99
}
1010

1111

@@ -117,12 +117,17 @@ timeline {
117117
margin: 13px 8px -15px 0;
118118
}
119119

120-
&:before {
121-
left: 3% !important;
122-
}
123-
.list, .list-md{
124-
margin-left:3% !important;
125-
}
120+
&:before {
121+
left: 3% !important;
122+
}
123+
.list, .list-md{
124+
margin-left:3% !important;
125+
}
126+
127+
.checkbox-ios {
128+
// position: absolute !important;
129+
margin: -6px 14px 8px -35px !important;
130+
}
126131

127132

128133
@media screen and (max-width: map-get($grid-breakpoints,'lg')){

src/components/timeline/timeline.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,11 @@ export class TimelineComponent {
1717
public list = [
1818
{
1919
title: 'Getting Out',
20+
checkmark: false,
2021
children: [
2122
{
2223
title: 'Understanding the process of separating',
24+
checkmark: false,
2325
children: [
2426
{
2527
title: 'Meet with separation counselor',
@@ -35,6 +37,7 @@ export class TimelineComponent {
3537
},
3638
{
3739
title: 'Completing my paperwork',
40+
checkmark: false,
3841
children: [
3942
{
4043
title: 'Fill out specific paperwork',
@@ -45,6 +48,7 @@ export class TimelineComponent {
4548
},
4649
{
4750
title: 'Engaging VA to access benefits',
51+
checkmark: false,
4852
children: [
4953
{
5054
title: 'Find out what benefits I will have after separation',
@@ -58,6 +62,7 @@ export class TimelineComponent {
5862
},
5963
{
6064
title: 'Starting Up',
65+
checkmark: false,
6166
children: [
6267
{
6368
title: 'Find something to do',
@@ -76,6 +81,7 @@ export class TimelineComponent {
7681
},
7782
{
7883
title: 'Re-establishing and creating relationships',
84+
checkmark: false,
7985
children: [
8086
{
8187
title: 'Check out vet center',
@@ -86,6 +92,7 @@ export class TimelineComponent {
8692
},
8793
{
8894
title: 'Balancing finances',
95+
checkmark: false,
8996
children: [
9097
{
9198
title: 'Open a savings account',
@@ -99,16 +106,19 @@ export class TimelineComponent {
99106
},
100107
{
101108
title: 'Taking care of myself',
109+
checkmark: false,
102110
children: [],
103111
itemExpand: false
104112
},
105113
{
106114
title: 'Reinventing myself',
115+
checkmark: false,
107116
children: [],
108117
itemExpand: false
109118
},
110119
{
111120
title: 'Putting down roots',
121+
checkmark: false,
112122
children: [],
113123
itemExpand: false
114124
}

0 commit comments

Comments
 (0)