File tree Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -180,6 +180,7 @@ ng_project(
180180 "//src/material/core" ,
181181 "//src/material/form-field" ,
182182 "//src/material/input" ,
183+ "//src/material/tooltip" ,
183184 ],
184185)
185186
Original file line number Diff line number Diff line change 2020
2121 < button matIconButton type ="button " class ="mat-calendar-previous-button "
2222 [disabled] ="!previousEnabled() " (click) ="previousClicked() "
23- [attr.aria-label ] ="prevButtonLabel " disabledInteractive >
23+ [matTooltip ] ="prevButtonLabel " disabledInteractive >
2424 < svg viewBox ="0 0 24 24 " focusable ="false " aria-hidden ="true ">
2525 < path d ="M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z "/>
2626 </ svg >
2727 </ button >
2828
2929 < button matIconButton type ="button " class ="mat-calendar-next-button "
3030 [disabled] ="!nextEnabled() " (click) ="nextClicked() "
31- [attr.aria-label ] ="nextButtonLabel " disabledInteractive >
31+ [matTooltip ] ="nextButtonLabel " disabledInteractive >
3232 < svg viewBox ="0 0 24 24 " focusable ="false " aria-hidden ="true ">
3333 < path d ="M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z "/>
3434 </ svg >
Original file line number Diff line number Diff line change @@ -43,6 +43,7 @@ import {MatIconButton, MatButton} from '../button';
4343import { _IdGenerator , CdkMonitorFocus } from '@angular/cdk/a11y' ;
4444import { _CdkPrivateStyleLoader , _VisuallyHiddenLoader } from '@angular/cdk/private' ;
4545import { _getFocusedElementPierceShadowDom } from '@angular/cdk/platform' ;
46+ import { MatTooltip } from '../tooltip' ;
4647
4748/**
4849 * Possible views for the calendar.
@@ -57,7 +58,7 @@ export type MatCalendarView = 'month' | 'year' | 'multi-year';
5758 exportAs : 'matCalendarHeader' ,
5859 encapsulation : ViewEncapsulation . None ,
5960 changeDetection : ChangeDetectionStrategy . OnPush ,
60- imports : [ MatButton , MatIconButton ] ,
61+ imports : [ MatButton , MatIconButton , MatTooltip ] ,
6162} )
6263export class MatCalendarHeader < D > {
6364 private _intl = inject ( MatDatepickerIntl ) ;
You can’t perform that action at this time.
0 commit comments