Skip to content

Commit 72941ff

Browse files
authored
Merge pull request #251 from ceciCoding/dp_aria
fix aria label on calendar day view prev and next buttons
2 parents 7abbabc + 4638a97 commit 72941ff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/TDatepicker/TDatepickerNavigator.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,13 +102,13 @@ const TDatepickerNavigator = Vue.extend({
102102
},
103103
nextButtonAriaLabel(): string {
104104
if (this.isDayView) {
105-
return `Next ${this.locale.yearAriaLabel}`;
105+
return `Next ${this.locale.MonthAriaLabel}`;
106106
}
107107
return `Next ${this.locale.yearAriaLabel}`;
108108
},
109109
prevButtonAriaLabel(): string {
110110
if (this.isDayView) {
111-
return `Prev ${this.locale.yearAriaLabel}`;
111+
return `Prev ${this.locale.MonthAriaLabel}`;
112112
}
113113
return `Prev ${this.locale.yearAriaLabel}`;
114114
},

0 commit comments

Comments
 (0)