mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-16 18:17:31 +08:00
fix(datetime): expand/collapse icon is not announced to screen readers (#26018)
This commit is contained in:
@ -1862,7 +1862,11 @@ export class Datetime implements ComponentInterface {
|
|||||||
<ion-item button detail={false} lines="none" onClick={() => this.toggleMonthAndYearView()}>
|
<ion-item button detail={false} lines="none" onClick={() => this.toggleMonthAndYearView()}>
|
||||||
<ion-label>
|
<ion-label>
|
||||||
{getMonthAndYear(this.locale, this.workingParts)}{' '}
|
{getMonthAndYear(this.locale, this.workingParts)}{' '}
|
||||||
<ion-icon icon={this.showMonthAndYear ? expandedIcon : collapsedIcon} lazy={false}></ion-icon>
|
<ion-icon
|
||||||
|
aria-hidden="true"
|
||||||
|
icon={this.showMonthAndYear ? expandedIcon : collapsedIcon}
|
||||||
|
lazy={false}
|
||||||
|
></ion-icon>
|
||||||
</ion-label>
|
</ion-label>
|
||||||
</ion-item>
|
</ion-item>
|
||||||
</div>
|
</div>
|
||||||
|
Reference in New Issue
Block a user