@@ -1202,3 +1296,31 @@ class TabGroupWithSpaceAbove {
})
class NestedTabGroupWithLabel {
}
+
+
+@Component({
+ template: `
+
+
+ Tab one content
+
+
+ Tab two content
+
+
+ Tab three content
+
+
+ Tab four content
+
+
+ Tab five content
+
+
+ `,
+})
+class TabsWithClassesTestApp {
+ @ViewChildren(MatTab) tabs: QueryList
;
+ labelClassList?: string | string[];
+ bodyClassList?: string | string[];
+}
diff --git a/src/material/tabs/tab-group.html b/src/material/tabs/tab-group.html
index 268ed3076d1e..f143dc6906b8 100644
--- a/src/material/tabs/tab-group.html
+++ b/src/material/tabs/tab-group.html
@@ -4,7 +4,8 @@
[disablePagination]="disablePagination"
(indexFocused)="_focusChanged($event)"
(selectFocusedIndex)="selectedIndex = $event">
-
-
+
- {{tab.textLabel}}
+ {{tab.textLabel}}
@@ -38,16 +40,17 @@
[class._mat-animation-noopable]="_animationMode === 'NoopAnimations'"
#tabBodyWrapper>