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

Commit a206df3

Browse files
sn-kaiercopybara-github
authored andcommitted
style(tab): Clean up z-indices to allow non-transparent backgrounds on tabs without breaking tab switch animations.
PiperOrigin-RevId: 492205902
1 parent f0a0bbc commit a206df3

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

packages/mdc-tab/_mixins.scss

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@
6363
white-space: nowrap;
6464
cursor: pointer;
6565
-webkit-appearance: none;
66-
z-index: 1;
6766

6867
// Firefox still draws a dotted border around focused buttons unless specifically overridden.
6968
&::-moz-focus-inner {
@@ -326,8 +325,6 @@
326325

327326
@include feature-targeting.targets($feat-structure) {
328327
margin-top: -2px;
329-
// Set z-index to +1 above the .mdc-tab
330-
z-index: 2;
331328
}
332329
}
333330

@@ -338,11 +335,6 @@
338335
$container-outer-padding-vertical: -4px,
339336
$container-outer-padding-horizontal: -4px
340337
);
341-
342-
@include feature-targeting.targets($feat-structure) {
343-
// Set z-index to +1 above the .mdc-tab
344-
z-index: 2;
345-
}
346338
}
347339
}
348340
}

0 commit comments

Comments
 (0)