From 38033c040ee3f99bc786b2c559770dc76d4b805f Mon Sep 17 00:00:00 2001 From: Joy Serquina Date: Mon, 4 Nov 2024 19:59:02 +0000 Subject: [PATCH] Revert "refactor(material/datepicker): update comparisonDateLabel value" This reverts commit 5eb3ff3c3f7bb11a5ae97d0bd22d56845892918b. --- src/material/datepicker/calendar-body.ts | 2 +- src/material/datepicker/datepicker-intl.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/material/datepicker/calendar-body.ts b/src/material/datepicker/calendar-body.ts index c014524a7f4f..1a35b9774871 100644 --- a/src/material/datepicker/calendar-body.ts +++ b/src/material/datepicker/calendar-body.ts @@ -474,7 +474,7 @@ export class MatCalendarBody implements OnChanges, OnDestroy, AfterView if (this.comparisonStart !== null && this.comparisonEnd !== null) { if (value === this.comparisonStart && value === this.comparisonEnd) { - return `${this._comparisonStartLabelId} ${this._comparisonEndLabelId}`; + return `${this._comparisonStartLabelId}-${this._comparisonEndLabelId}`; } else if (value === this.comparisonStart) { return this._comparisonStartLabelId; } else if (value === this.comparisonEnd) { diff --git a/src/material/datepicker/datepicker-intl.ts b/src/material/datepicker/datepicker-intl.ts index 476b20be20b5..f1a448e1cfb5 100644 --- a/src/material/datepicker/datepicker-intl.ts +++ b/src/material/datepicker/datepicker-intl.ts @@ -69,7 +69,7 @@ export class MatDatepickerIntl { * A label used to indicate that the date is part of a selected comparison * sub range of dates (used by screen readers). */ - comparisonDateLabel = 'Comparison range'; + comparisonDateLabel = 'Sub range'; /** Formats a range of years (used for visuals). */ formatYearRange(start: string, end: string): string {