Skip to content
This repository was archived by the owner on Jan 13, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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