Skip to content

Commit

Permalink
fix(calendar): use nbButton in calendar navigation (#837)
Browse files Browse the repository at this point in the history
Closes #827
  • Loading branch information
tibing-old-email authored and nnixaa committed Oct 1, 2018
1 parent f4347a6 commit f460f85
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
}
}

nb-calendar-navigation button.btn.btn-primary {
nb-calendar-navigation button[nbButton] {
width: nb-theme(calendar-navigation-button-width);

@include nb-for-theme(default) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { NgModule } from '@angular/core';
import { DatePipe } from '@angular/common';

import { NbSharedModule } from '../shared/shared.module';
import { NbButtonModule } from '../button/button.module';

import { NbCalendarMonthModelService, NbDateService } from './services';

Expand Down Expand Up @@ -73,7 +74,7 @@ const PIPES = [
* @stacked-example(Full calendar, calendar-kit/calendar-kit-full-calendar.component)
* */
@NgModule({
imports: [NbSharedModule],
imports: [NbSharedModule, NbButtonModule],
exports: [...COMPONENTS, ...PIPES],
declarations: [...COMPONENTS, ...PIPES],
providers: [...SERVICES],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import { ChangeDetectionStrategy, Component, EventEmitter, Input, Output } from
}
`],
template: `
<button class="btn btn-primary" (click)="changeMode.emit()">
<button nbButton (click)="changeMode.emit()">
{{ date | nbCalendarDate }}
</button>
`,
Expand Down

0 comments on commit f460f85

Please sign in to comment.