mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-16 10:01:59 +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-label>
|
||||
{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-item>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user