Skip to content

Commit

Permalink
fix(material/datepicker): deprecate calendarLabel
Browse files Browse the repository at this point in the history
Deprecate `MatDatepickerIntl:calendarLabel`. calendarLabel is not used.

Deprecate dead code. Does not change behavior.

Resolve angular#27935
  • Loading branch information
zarend committed Feb 26, 2024
1 parent 24eaa2e commit 0821f27
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
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

0 comments on commit 0821f27

Please sign in to comment.