Skip to content

Commit ddf1fb0

Browse files
asyncLizcopybara-github
authored andcommitted
fix(tabs): --md-elevation-level no longer leaks into tabs
Fixes #5137 PiperOrigin-RevId: 591357826
1 parent 80edf15 commit ddf1fb0

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

tabs/internal/_tab.scss

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,13 @@
4141
pressed-opacity: var(--_pressed-state-layer-opacity),
4242
)
4343
);
44+
45+
// b/316459034 - elevation should be removed
46+
@include elevation.theme(
47+
(
48+
level: var(--_container-elevation),
49+
)
50+
);
4451
}
4552

4653
md-focus-ring {
@@ -139,11 +146,6 @@
139146
}
140147
:host([active]) {
141148
color: var(--_active-label-text-color);
142-
@include elevation.theme(
143-
(
144-
level: var(--_container-elevation),
145-
)
146-
);
147149

148150
@include ripple.theme(
149151
(

0 commit comments

Comments
 (0)