Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/material/datepicker/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ ng_project(
"//src/material/core",
"//src/material/form-field",
"//src/material/input",
"//src/material/tooltip",
],
)

Expand Down
4 changes: 2 additions & 2 deletions src/material/datepicker/calendar-header.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@

<button matIconButton type="button" class="mat-calendar-previous-button"
[disabled]="!previousEnabled()" (click)="previousClicked()"
[attr.aria-label]="prevButtonLabel" disabledInteractive>
[matTooltip]="prevButtonLabel" [attr.aria-label]="prevButtonLabel" disabledInteractive>
<svg viewBox="0 0 24 24" focusable="false" aria-hidden="true">
<path d="M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"/>
</svg>
</button>

<button matIconButton type="button" class="mat-calendar-next-button"
[disabled]="!nextEnabled()" (click)="nextClicked()"
[attr.aria-label]="nextButtonLabel" disabledInteractive>
[matTooltip]="nextButtonLabel" [attr.aria-label]="nextButtonLabel" disabledInteractive>
<svg viewBox="0 0 24 24" focusable="false" aria-hidden="true">
<path d="M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/>
</svg>
Expand Down
3 changes: 2 additions & 1 deletion src/material/datepicker/calendar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ import {MatIconButton, MatButton} from '../button';
import {_IdGenerator, CdkMonitorFocus} from '@angular/cdk/a11y';
import {_CdkPrivateStyleLoader, _VisuallyHiddenLoader} from '@angular/cdk/private';
import {_getFocusedElementPierceShadowDom} from '@angular/cdk/platform';
import {MatTooltip} from '../tooltip';

/**
* Possible views for the calendar.
Expand All @@ -57,7 +58,7 @@ export type MatCalendarView = 'month' | 'year' | 'multi-year';
exportAs: 'matCalendarHeader',
encapsulation: ViewEncapsulation.None,
changeDetection: ChangeDetectionStrategy.OnPush,
imports: [MatButton, MatIconButton],
imports: [MatButton, MatIconButton, MatTooltip],
})
export class MatCalendarHeader<D> {
private _intl = inject(MatDatepickerIntl);
Expand Down
Loading