Skip to content

Commit

Permalink
fix(fab-button): icon is not announced by screen readers (#26619)
Browse files Browse the repository at this point in the history
resolves #22296
  • Loading branch information
liamdebeasi authored Jan 19, 2023
1 parent 44b8292 commit dd7cd8c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion core/src/components/fab-button/fab-button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,13 @@ export class FabButton implements ComponentInterface, AnchorInterface, ButtonInt
onClick={(ev: Event) => openURL(href, ev, this.routerDirection, this.routerAnimation)}
{...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">
<slot></slot>
</span>
Expand Down

0 comments on commit dd7cd8c

Please sign in to comment.