Skip to content

Commit 41e3387

Browse files
authored
fix(datetime): next and previous buttons have correct labels (#25845)
resolves #25844
1 parent 373b4ff commit 41e3387

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

core/src/components/datetime/datetime.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1839,11 +1839,11 @@ export class Datetime implements ComponentInterface {
18391839

18401840
<div class="calendar-next-prev">
18411841
<ion-buttons>
1842-
<ion-button disabled={prevMonthDisabled} onClick={() => this.prevMonth()}>
1843-
<ion-icon slot="icon-only" icon={chevronBack} lazy={false} flipRtl></ion-icon>
1842+
<ion-button aria-label="previous month" disabled={prevMonthDisabled} onClick={() => this.prevMonth()}>
1843+
<ion-icon aria-hidden="true" slot="icon-only" icon={chevronBack} lazy={false} flipRtl></ion-icon>
18441844
</ion-button>
1845-
<ion-button disabled={nextMonthDisabled} onClick={() => this.nextMonth()}>
1846-
<ion-icon slot="icon-only" icon={chevronForward} lazy={false} flipRtl></ion-icon>
1845+
<ion-button aria-label="next month" disabled={nextMonthDisabled} onClick={() => this.nextMonth()}>
1846+
<ion-icon aria-hidden="true" slot="icon-only" icon={chevronForward} lazy={false} flipRtl></ion-icon>
18471847
</ion-button>
18481848
</ion-buttons>
18491849
</div>

0 commit comments

Comments
 (0)