Skip to content

Commit

Permalink
fix(datepicker): ease the styling of datepicker (#3248)
Browse files Browse the repository at this point in the history
Sets background color in ngb-dp-* classes instead of using .bg-light

closes #3244
  • Loading branch information
IAfanasov authored and Benoit Charbonnier committed Jul 16, 2019
1 parent 0b3ad65 commit dd86266
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/datepicker/datepicker.scss
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ ngb-datepicker {
border-bottom: 0;
border-radius: .25rem .25rem 0 0;
padding-top: .25rem;
background-color: #f8f9fa;
}

&-months {
Expand All @@ -35,6 +36,7 @@ ngb-datepicker {
height: 2rem;
line-height: 2rem;
text-align: center;
background-color: #f8f9fa;
}

& + & {
Expand Down
4 changes: 2 additions & 2 deletions src/datepicker/datepicker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export interface NgbDatepickerNavigateEvent {
</div>
</ng-template>
<div class="ngb-dp-header bg-light">
<div class="ngb-dp-header">
<ngb-datepicker-navigation *ngIf="navigation !== 'none'"
[date]="model.firstDate"
[months]="model.months"
Expand All @@ -101,7 +101,7 @@ export interface NgbDatepickerNavigateEvent {
<ng-template ngFor let-month [ngForOf]="model.months" let-i="index">
<div class="ngb-dp-month">
<div *ngIf="navigation === 'none' || (displayMonths > 1 && navigation === 'select')"
class="ngb-dp-month-name bg-light">
class="ngb-dp-month-name">
{{ i18n.getMonthFullName(month.number, month.year) }} {{ i18n.getYearNumerals(month.year) }}
</div>
<ngb-datepicker-month-view
Expand Down

0 comments on commit dd86266

Please sign in to comment.