();
diff --git a/src/material/tabs/tab-header.html b/src/material/tabs/tab-header.html
index aca77b31e022..4c2e5772999e 100644
--- a/src/material/tabs/tab-header.html
+++ b/src/material/tabs/tab-header.html
@@ -22,6 +22,8 @@
#tabList
class="mat-mdc-tab-list"
role="tablist"
+ [attr.aria-label]="ariaLabel || null"
+ [attr.aria-labelledby]="ariaLabelledby || null"
(cdkObserveContent)="_onContentChanges()">
diff --git a/src/material/tabs/tab-header.ts b/src/material/tabs/tab-header.ts
index da88094f4554..d262948ac661 100644
--- a/src/material/tabs/tab-header.ts
+++ b/src/material/tabs/tab-header.ts
@@ -69,6 +69,12 @@ export class MatTabHeader
@ViewChild('previousPaginator') _previousPaginator: ElementRef;
_inkBar: MatInkBar;
+ /** Aria label of the header. */
+ @Input('aria-label') ariaLabel: string;
+
+ /** Sets the `aria-labelledby` of the header. */
+ @Input('aria-labelledby') ariaLabelledby: string;
+
/** Whether the ripple effect is disabled or not. */
@Input({transform: booleanAttribute})
disableRipple: boolean = false;
diff --git a/tools/public_api_guard/material/tabs.md b/tools/public_api_guard/material/tabs.md
index d911304e52e4..5b542f8c44bb 100644
--- a/tools/public_api_guard/material/tabs.md
+++ b/tools/public_api_guard/material/tabs.md
@@ -259,6 +259,8 @@ export class MatTabGroup implements AfterContentInit, AfterContentChecked, OnDes
set animationDuration(value: string | number);
// (undocumented)
_animationMode?: string | undefined;
+ ariaLabel: string;
+ ariaLabelledby: string;
// @deprecated
get backgroundColor(): ThemePalette;
set backgroundColor(value: ThemePalette);
@@ -320,7 +322,7 @@ export class MatTabGroup implements AfterContentInit, AfterContentChecked, OnDes
_tabs: QueryList;
updatePagination(): void;
// (undocumented)
- static ɵcmp: i0.ɵɵComponentDeclaration;
+ static ɵcmp: i0.ɵɵComponentDeclaration;
// (undocumented)
static ɵfac: i0.ɵɵFactoryDeclaration;
}
@@ -338,6 +340,8 @@ export interface MatTabGroupBaseHeader {
// @public
export class MatTabHeader extends MatPaginatedTabHeader implements AfterContentChecked, AfterContentInit, AfterViewInit, OnDestroy {
constructor(elementRef: ElementRef, changeDetectorRef: ChangeDetectorRef, viewportRuler: ViewportRuler, dir: Directionality, ngZone: NgZone, platform: Platform, animationMode?: string);
+ ariaLabel: string;
+ ariaLabelledby: string;
disableRipple: boolean;
// (undocumented)
_inkBar: MatInkBar;
@@ -360,7 +364,7 @@ export class MatTabHeader extends MatPaginatedTabHeader implements AfterContentC
// (undocumented)
_tabListInner: ElementRef;
// (undocumented)
- static ɵcmp: i0.ɵɵComponentDeclaration;
+ static ɵcmp: i0.ɵɵComponentDeclaration;
// (undocumented)
static ɵfac: i0.ɵɵFactoryDeclaration;
}