diff --git a/core/src/components/datetime/datetime.tsx b/core/src/components/datetime/datetime.tsx index e9bb5d47086..3b1fdf0d91d 100644 --- a/core/src/components/datetime/datetime.tsx +++ b/core/src/components/datetime/datetime.tsx @@ -2253,6 +2253,7 @@ export class Datetime implements ComponentInterface { private renderCalendarHeader(mode: Mode) { const { disabled } = this; + const monthAndYear = getMonthAndYear(this.locale, this.workingParts); const expandedIcon = mode === 'ios' ? chevronDown : caretUpSharp; const collapsedIcon = mode === 'ios' ? chevronForward : caretDownSharp; @@ -2274,11 +2275,11 @@ export class Datetime implements ComponentInterface { }} part="month-year-button" disabled={disabled} - aria-label={this.showMonthAndYear ? 'Hide year picker' : 'Show year picker'} + aria-label={`${monthAndYear}, ${this.showMonthAndYear ? 'Hide year picker' : 'Show year picker'}`} onClick={() => this.toggleMonthAndYearView()} > - {getMonthAndYear(this.locale, this.workingParts)} + {monthAndYear}