Skip to content

Commit 5597a7f

Browse files
committed
fixup! feat(material/slider): improve slider demo
1 parent f14b318 commit 5597a7f

File tree

2 files changed

+10
-15
lines changed

2 files changed

+10
-15
lines changed

src/dev-app/slider/slider-demo.html

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
1-
<div class="demo-global-controls-container">
2-
<mat-checkbox [color]="colorModel" [(ngModel)]="discrete">Discrete</mat-checkbox>
3-
<br>
4-
<mat-checkbox [color]="colorModel" [(ngModel)]="showTickMarks">Show tick marks</mat-checkbox>
5-
<br>
6-
<mat-button-toggle-group [(ngModel)]="colorModel" aria-label="Slider color options">
7-
<mat-button-toggle value="primary">Primary</mat-button-toggle>
8-
<mat-button-toggle value="accent">Accent</mat-button-toggle>
9-
<mat-button-toggle value="warn">Warn</mat-button-toggle>
10-
</mat-button-toggle-group>
11-
</div>
1+
<mat-checkbox [color]="colorModel" [(ngModel)]="discrete">Discrete</mat-checkbox>
2+
<br>
3+
<mat-checkbox [color]="colorModel" [(ngModel)]="showTickMarks">Show tick marks</mat-checkbox>
4+
<br>
5+
<mat-button-toggle-group [(ngModel)]="colorModel" aria-label="Slider color options">
6+
<mat-button-toggle value="primary">Primary</mat-button-toggle>
7+
<mat-button-toggle value="accent">Accent</mat-button-toggle>
8+
<mat-button-toggle value="warn">Warn</mat-button-toggle>
9+
</mat-button-toggle-group>
1210

1311
<mat-tab-group [color]="colorModel">
1412
<mat-tab label="Reactive form controls">

src/dev-app/slider/slider-demo.scss

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
.demo-global-controls-container {
2-
padding-bottom: 30px;
3-
}
4-
51
.demo-data-table {
62
font-family: arial, sans-serif;
73
border-collapse: collapse;
@@ -48,4 +44,5 @@
4844
border: 1px solid;
4945
border-radius: 5px;
5046
min-width: 300px;
47+
margin-top: 30px;
5148
}

0 commit comments

Comments
 (0)