Skip to content

Commit

Permalink
fix(button): increase accessibility for loading button
Browse files Browse the repository at this point in the history
  • Loading branch information
paulinewahle authored and Kiarokh committed Sep 23, 2024
1 parent 8b7a23d commit 0a389b3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/button/button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@ export class Button {
outlined: this.outlined,
}}
disabled={this.disabled || this.loading}
aria-busy={this.loading ? 'true' : 'false'}
aria-live="polite"
>
{this.renderIcon()}
{this.renderLabel()}
Expand Down

0 comments on commit 0a389b3

Please sign in to comment.