fix(fab-button): icon is not announced by screen readers (#26619)

resolves #22296
This commit is contained in:
Liam DeBeasi
2023-01-19 09:31:26 -05:00
committed by GitHub
parent 44b8292226
commit dd7cd8c0bf

View File

@ -191,7 +191,13 @@ export class FabButton implements ComponentInterface, AnchorInterface, ButtonInt
onClick={(ev: Event) => openURL(href, ev, this.routerDirection, this.routerAnimation)} onClick={(ev: Event) => openURL(href, ev, this.routerDirection, this.routerAnimation)}
{...inheritedAttributes} {...inheritedAttributes}
> >
<ion-icon icon={this.closeIcon} part="close-icon" class="close-icon" lazy={false}></ion-icon> <ion-icon
aria-hidden="true"
icon={this.closeIcon}
part="close-icon"
class="close-icon"
lazy={false}
></ion-icon>
<span class="button-inner"> <span class="button-inner">
<slot></slot> <slot></slot>
</span> </span>