|
112 | 112 | @mixin ripple($query: feature-targeting.all()) {
|
113 | 113 | @include ripple.common($query); // COPYBARA_COMMENT_THIS_LINE
|
114 | 114 |
|
115 |
| - .mdc-tab__ripple { |
116 |
| - @include ripple_($query); |
117 |
| - } |
| 115 | + @include ripple_($query); |
118 | 116 | }
|
119 | 117 |
|
120 | 118 | @mixin horizontal-padding($padding, $query: feature-targeting.all()) {
|
|
149 | 147 | }
|
150 | 148 |
|
151 | 149 | @mixin states-color($color, $query: feature-targeting.all()) {
|
152 |
| - .mdc-tab__ripple { |
153 |
| - @include ripple-theme.states($color, $query: $query); |
154 |
| - } |
| 150 | + @include ripple-theme.states( |
| 151 | + $color, |
| 152 | + $query: $query, |
| 153 | + $ripple-target: variables.$ripple-target |
| 154 | + ); |
155 | 155 | }
|
156 | 156 |
|
157 | 157 | @mixin ink-color($color, $query: feature-targeting.all()) {
|
|
276 | 276 | @mixin ripple_($query: feature-targeting.all()) {
|
277 | 277 | $feat-structure: feature-targeting.create-target($query, structure);
|
278 | 278 |
|
279 |
| - @include ripple.surface($query); |
280 |
| - @include ripple.radius-bounded($query: $query); |
281 |
| - @include ripple-theme.states($color: primary, $query: $query); |
| 279 | + .mdc-tab { |
| 280 | + @include ripple.surface( |
| 281 | + $query, |
| 282 | + $ripple-target: variables.$ripple-target, |
| 283 | + $include-will-change: false |
| 284 | + ); |
| 285 | + @include ripple.radius-bounded( |
| 286 | + $query: $query, |
| 287 | + $ripple-target: variables.$ripple-target |
| 288 | + ); |
| 289 | + @include ripple-theme.states( |
| 290 | + $color: primary, |
| 291 | + $query: $query, |
| 292 | + $ripple-target: variables.$ripple-target |
| 293 | + ); |
| 294 | + } |
282 | 295 |
|
283 |
| - @include feature-targeting.targets($feat-structure) { |
284 |
| - position: absolute; |
285 |
| - top: 0; |
286 |
| - left: 0; |
287 |
| - width: 100%; |
288 |
| - height: 100%; |
289 |
| - overflow: hidden; |
| 296 | + #{variables.$ripple-target} { |
| 297 | + @include feature-targeting.targets($feat-structure) { |
| 298 | + position: absolute; |
| 299 | + top: 0; |
| 300 | + left: 0; |
| 301 | + width: 100%; |
| 302 | + height: 100%; |
| 303 | + overflow: hidden; |
| 304 | + // TODO(b/151931961): Remove the following line once resolved |
| 305 | + will-change: transform, opacity; |
| 306 | + } |
290 | 307 | }
|
291 | 308 | }
|
292 | 309 |
|
|
0 commit comments