Skip to content

Commit

Permalink
feat(examples): theme todo notifications
Browse files Browse the repository at this point in the history
closes #72
  • Loading branch information
tomastrajan committed Mar 17, 2018
1 parent 80a81fe commit 075bef9
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
13 changes: 13 additions & 0 deletions src/app/examples/todos/todos.component.scss-theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,17 @@
}
}
}

.todos-notification-overlay {
.mat-simple-snackbar {
align-items: center;

button {
padding: 10px 20px;
border-radius: 2px;
background-color: mat-color($accent);
color: mat-color($accent, default-contrast);
}
}
}
}
3 changes: 2 additions & 1 deletion src/app/examples/todos/todos.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@ export class TodosComponent implements OnInit, OnDestroy {

private showNotification(message: string, action?: string) {
return this.snackBar.open(message, action, {
duration: 3000
duration: 2500,
panelClass: 'todos-notification-overlay'
});
}
}

0 comments on commit 075bef9

Please sign in to comment.