Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(material/datepicker): deprecate calendarLabel #28652

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/material/datepicker/datepicker-intl.ts
Expand Up @@ -18,7 +18,11 @@ export class MatDatepickerIntl {
*/
readonly changes: Subject<void> = new Subject<void>();

/** A label for the calendar popup (used by screen readers). */
/**
* A label for the calendar popup (used by screen readers).
* @deprecated Provide your own internationalization string.
* @breaking-change 20.0.0
*/
calendarLabel = 'Calendar';

/** A label for the button used to open the calendar popup (used by screen readers). */
Expand Down
1 change: 1 addition & 0 deletions tools/public_api_guard/material/datepicker.md
Expand Up @@ -479,6 +479,7 @@ export class MatDatepickerInputEvent<D, S = unknown> {

// @public
export class MatDatepickerIntl {
// @deprecated
calendarLabel: string;
readonly changes: Subject<void>;
closeCalendarLabel: string;
Expand Down