Skip to content

Commit

Permalink
feat(fab): Use new mdc-states mixin for fab styles (#1669)
Browse files Browse the repository at this point in the history
  • Loading branch information
kfranqueiro committed Dec 5, 2017
1 parent 5065576 commit 9ab48b7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
4 changes: 2 additions & 2 deletions packages/mdc-fab/_mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@

@if ($fill-tone == "dark") {
@include mdc-fab-ink-color(text-primary-on-dark);
@include mdc-ripple-color(text-primary-on-dark, $mdc-ripple-pressed-light-ink-opacity);
@include mdc-states(text-primary-on-dark);
} @else {
@include mdc-fab-ink-color(text-primary-on-light);
@include mdc-ripple-color(text-primary-on-light, $mdc-ripple-pressed-dark-ink-opacity);
@include mdc-states(text-primary-on-light);
}
}

Expand Down
6 changes: 1 addition & 5 deletions packages/mdc-fab/mdc-fab.scss
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,7 @@
@include mdc-fab-base_;
@include mdc-fab-container-color(secondary);
@include mdc-fab-ink-color(text-primary-on-secondary);
@include mdc-ripple-color(text-primary-on-secondary, $mdc-ripple-pressed-dark-ink-opacity);

&:not(.mdc-ripple-upgraded) {
-webkit-tap-highlight-color: rgba(0, 0, 0, .18);
}
@include mdc-states(text-primary-on-secondary);
}

.mdc-fab--mini {
Expand Down

0 comments on commit 9ab48b7

Please sign in to comment.