Skip to content
This repository was archived by the owner on Jan 13, 2025. It is now read-only.

Commit b723dfa

Browse files
authored
fix(elevation): Update overlay color mixin (#5331)
1 parent 1fbf5bd commit b723dfa

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

packages/mdc-elevation/_mixins.scss

+7-7
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,10 @@
7171
transition: mdc-elevation-overlay-transition-value();
7272
}
7373
}
74-
}
7574

76-
@include mdc-base-emit-once("mdc-elevation/common/color") {
77-
@include mdc-elevation-overlay-fill-color($mdc-elevation-overlay-color, $query: $query);
75+
@include mdc-base-emit-once("mdc-elevation/common/color") {
76+
@include mdc-elevation-overlay-fill-color($mdc-elevation-overlay-color, $query: $query);
77+
}
7878
}
7979
}
8080

@@ -135,21 +135,21 @@
135135

136136
///
137137
/// Sets the elevation overlay fill color.
138+
/// Expected to be called directly on the elevation overlay element.
138139
///
139140
/// @param {Color} $color - The color of the elevation overlay.
140141
///
141142
@mixin mdc-elevation-overlay-fill-color($color, $query: mdc-feature-all()) {
142143
$feat-color: mdc-feature-create-target($query, color);
143144

144-
@include mdc-elevation-overlay-selector_ {
145-
@include mdc-feature-targets($feat-color) {
146-
@include mdc-theme-prop(background-color, $color);
147-
}
145+
@include mdc-feature-targets($feat-color) {
146+
@include mdc-theme-prop(background-color, $color);
148147
}
149148
}
150149

151150
///
152151
/// Sets the elevation overlay opacity.
152+
/// Expected to be called from a parent element.
153153
///
154154
/// @param {Number} $opacity - The opacity of the elevation overlay.
155155
///

0 commit comments

Comments
 (0)