Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

Commit

Permalink
fix(toast): fix highlighting of action buttons
Browse files Browse the repository at this point in the history
ref #1193
  • Loading branch information
rschmukler committed Jan 21, 2015
1 parent 0f40a84 commit 53cffe2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
17 changes: 8 additions & 9 deletions src/components/toast/toast-theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,14 @@ md-toast.md-THEME_NAME-theme {

.md-button {
color: '{{background-50}}';
}

.md-action {
color: '{{primary-A200}}';
&.md-accent {
color: '{{accent-A200}}';
}
&.md-warn {
color: '{{warn-A200}}';
&.md-highlight {
color: '{{primary-A200}}';
&.md-accent {
color: '{{accent-A200}}';
}
&.md-warn {
color: '{{warn-A200}}';
}
}
}
}
2 changes: 1 addition & 1 deletion src/components/toast/toast.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ function MdToastProvider($$interimElementProvider) {
template: [
'<md-toast ng-class="{\'md-capsule\': toast.capsule}">',
'<span flex>{{ toast.content }}</span>',
'<md-button ng-if="toast.action" ng-click="toast.resolve()" ng-class="{\'md-action\': toast.highlightAction}">',
'<md-button class="md-action" ng-if="toast.action" ng-click="toast.resolve()" ng-class="{\'md-highlight\': toast.highlightAction}">',
'{{ toast.action }}',
'</md-button>',
'</md-toast>'
Expand Down

0 comments on commit 53cffe2

Please sign in to comment.