Skip to content

Commit 38033c0

Browse files
committed
Revert "refactor(material/datepicker): update comparisonDateLabel value"
This reverts commit 5eb3ff3.
1 parent e825b72 commit 38033c0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/material/datepicker/calendar-body.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,7 @@ export class MatCalendarBody<D = any> implements OnChanges, OnDestroy, AfterView
474474

475475
if (this.comparisonStart !== null && this.comparisonEnd !== null) {
476476
if (value === this.comparisonStart && value === this.comparisonEnd) {
477-
return `${this._comparisonStartLabelId} ${this._comparisonEndLabelId}`;
477+
return `${this._comparisonStartLabelId}-${this._comparisonEndLabelId}`;
478478
} else if (value === this.comparisonStart) {
479479
return this._comparisonStartLabelId;
480480
} else if (value === this.comparisonEnd) {

src/material/datepicker/datepicker-intl.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ export class MatDatepickerIntl {
6969
* A label used to indicate that the date is part of a selected comparison
7070
* sub range of dates (used by screen readers).
7171
*/
72-
comparisonDateLabel = 'Comparison range';
72+
comparisonDateLabel = 'Sub range';
7373

7474
/** Formats a range of years (used for visuals). */
7575
formatYearRange(start: string, end: string): string {

0 commit comments

Comments
 (0)