Skip to content

Commit d8f42df

Browse files
DouglasWebstervalorkin
authored andcommitted
fix(demo): bootstrap 4 demos card text formatting incorrectly. (#1656)
* Fix Bootstrap 4 and card text #1637 Moved card class to a surrounding div so text formats correctly with Bootstrap 4 * Fix Bootstrap 4 and card text #1637 Moved card class to a surrounding div so text formats correctly with Bootstrap 4
1 parent 2b3fb8d commit d8f42df

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

demo/src/app/components/+datepicker/demos/datepicker-demo.component.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@
1212
</style>
1313

1414
<div>
15-
<pre class="card card-block card-header">Selected date is: <em *ngIf="dt">{{ getDate() | date:'fullDate'}}</em></pre>
15+
<div class="card">
16+
<pre class="card-block card-header">Selected date is: <em *ngIf="dt">{{ getDate() | date:'fullDate'}}</em></pre>
17+
</div>
1618
<h4>Inline</h4>
1719
<div style="display:inline-block; min-height:290px;">
1820
<datepicker [(ngModel)]="dt" [minDate]="minDate" [showWeeks]="true" [dateDisabled]="dateDisabled"></datepicker>
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
<rating [(ngModel)]="rate" [max]="max" [readonly]="isReadonly"></rating>
2-
3-
<pre class="card card-block card-header" style="margin:15px 0;">Rate: <b>{{rate}}</b> </pre>
2+
<div class="card">
3+
<pre class="card-block card-header" style="margin:15px 0;">Rate: <b>{{rate}}</b> </pre>
4+
</div>

demo/src/app/components/+rating/demos/dynamic/dynamic.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@
44
<span class="label"
55
[ngClass]="{'label-warning': percent<30, 'label-info': percent>=30 && percent<70, 'label-success': percent>=70}"
66
[ngStyle]="{display: (overStar && !isReadonly) ? 'inline' : 'none'}">{{percent}}%</span>
7-
8-
<pre class="card card-block card-header" style="margin:15px 0;">Rate: <b>{{rate}}</b>; Readonly is: <i>{{isReadonly}}</i>; Hovering over: <b>{{overStar || "none"}}</b></pre>
7+
<div class="card">
8+
<pre class="card-block card-header" style="margin:15px 0;">Rate: <b>{{rate}}</b>; Readonly is: <i>{{isReadonly}}</i>; Hovering over: <b>{{overStar || "none"}}</b></pre>
9+
</div>
910

1011
<button type="button" class="btn btn-sm btn-danger" (click)="rate = 0"
1112
[disabled]="isReadonly">Clear

0 commit comments

Comments
 (0)