Skip to content

Commit

Permalink
fix(elevation): Update overlay color mixin (material-components#5331)
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickrodee authored Dec 12, 2019
1 parent 1fbf5bd commit b723dfa
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions packages/mdc-elevation/_mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,10 @@
transition: mdc-elevation-overlay-transition-value();
}
}
}

@include mdc-base-emit-once("mdc-elevation/common/color") {
@include mdc-elevation-overlay-fill-color($mdc-elevation-overlay-color, $query: $query);
@include mdc-base-emit-once("mdc-elevation/common/color") {
@include mdc-elevation-overlay-fill-color($mdc-elevation-overlay-color, $query: $query);
}
}
}

Expand Down Expand Up @@ -135,21 +135,21 @@

///
/// Sets the elevation overlay fill color.
/// Expected to be called directly on the elevation overlay element.
///
/// @param {Color} $color - The color of the elevation overlay.
///
@mixin mdc-elevation-overlay-fill-color($color, $query: mdc-feature-all()) {
$feat-color: mdc-feature-create-target($query, color);

@include mdc-elevation-overlay-selector_ {
@include mdc-feature-targets($feat-color) {
@include mdc-theme-prop(background-color, $color);
}
@include mdc-feature-targets($feat-color) {
@include mdc-theme-prop(background-color, $color);
}
}

///
/// Sets the elevation overlay opacity.
/// Expected to be called from a parent element.
///
/// @param {Number} $opacity - The opacity of the elevation overlay.
///
Expand Down

0 comments on commit b723dfa

Please sign in to comment.