Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(playground): use nebular buttons in examples #849

Merged
merged 2 commits into from
Oct 3, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/playground/dialog/dialog-showcase.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export class NbShowcaseDialogComponent {

@Component({
selector: 'nb-dialog-showcase',
template: '<button class="btn btn-primary" (click)="open()">Open Dialog</button>',
template: '<button nbButton (click)="open()">Open Dialog</button>',
styles: [` /deep/ nb-layout-column {
height: 80vw;
} `],
Expand Down
2 changes: 1 addition & 1 deletion src/playground/dialog/dialog-template.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { NbDialogService } from '@nebular/theme';
</nb-card-footer>
</nb-card>
</ng-template>
<button class="btn btn-primary" (click)="open(dialog)">Open Dialog</button>
<button nbButton (click)="open(dialog)">Open Dialog</button>
`,
styles: [`
/deep/ nb-layout-column {
Expand Down
16 changes: 8 additions & 8 deletions src/playground/toastr/toastr-positions.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ import { NbToastrService } from '@nebular/theme';
@Component({
selector: 'nb-toastr-positions',
template: `
<button class="btn btn-primary" (click)="showToast('top-right')">Top Right</button>
<button class="btn btn-primary" (click)="showToast('bottom-right')">Bottom Right</button>
<button class="btn btn-primary" (click)="showToast('top-left')">Top Left</button>
<button class="btn btn-primary" (click)="showToast('bottom-left')">Bottom Left</button>
<button class="btn btn-primary" (click)="showToast('top-end')">Top End</button>
<button class="btn btn-primary" (click)="showToast('bottom-end')">Bottom End</button>
<button class="btn btn-primary" (click)="showToast('top-start')">Top Start</button>
<button class="btn btn-primary" (click)="showToast('bottom-start')">Bottom Start</button>
<button nbButton (click)="showToast('top-right')">Top Right</button>
<button nbButton (click)="showToast('bottom-right')">Bottom Right</button>
<button nbButton (click)="showToast('top-left')">Top Left</button>
<button nbButton (click)="showToast('bottom-left')">Bottom Left</button>
<button nbButton (click)="showToast('top-end')">Top End</button>
<button nbButton (click)="showToast('bottom-end')">Bottom End</button>
<button nbButton (click)="showToast('top-start')">Top Start</button>
<button nbButton (click)="showToast('bottom-start')">Bottom Start</button>
`,
styles: [
`
Expand Down
4 changes: 2 additions & 2 deletions src/playground/toastr/toastr-showcase.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import { NbToastrService } from '@nebular/theme';
@Component({
selector: 'nb-toastr-showcase',
template: `
<button class="btn btn-primary" (click)="showToast('top-right', 'success')">Top Right</button>
<button class="btn btn-primary" (click)="showToast('bottom-left', 'info')">Bottom left</button>
<button nbButton (click)="showToast('top-right', 'success')">Top Right</button>
<button nbButton (click)="showToast('bottom-left', 'info')">Bottom left</button>
`,
styles: [
`
Expand Down