Skip to content

Commit

Permalink
WIP Remove redundant feature-targets block
Browse files Browse the repository at this point in the history
  • Loading branch information
Kenneth G. Franqueiro committed Mar 21, 2019
1 parent 68cb08e commit 1e89a55
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions packages/mdc-fab/_mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -92,19 +92,16 @@
}

@mixin mdc-fab-accessible($container-color, $query: mdc-feature-all()) {
$feat-color: mdc-feature-create-target($query, color);
$fill-tone: mdc-theme-tone($container-color);

@include mdc-fab-container-color($container-color, $query: $query);

@include mdc-feature-targets($feat-color) {
@if ($fill-tone == "dark") {
@include mdc-fab-ink-color(text-primary-on-dark, $query: $query);
@include mdc-states(text-primary-on-dark, $query: $query);
} @else {
@include mdc-fab-ink-color(text-primary-on-light, $query: $query);
@include mdc-states(text-primary-on-light, $query: $query);
}
$fill-tone: mdc-theme-tone($container-color);

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

Expand Down

0 comments on commit 1e89a55

Please sign in to comment.