Skip to content

Commit

Permalink
move to attribute syntax for aria-disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisdholt committed Mar 30, 2023
1 parent 01d20ab commit 7567615
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/web-components/src/button/button.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,9 @@ export class Button extends FASTButton {
}

if (this.disabledFocusable) {
this.ariaDisabled = true;
((this as unknown) as HTMLElement).setAttribute('aria-disabled', 'true');
} else {
this.ariaDisabled = false;
((this as unknown) as HTMLElement).removeAttribute('aria-disabled');
}
}

Expand Down

0 comments on commit 7567615

Please sign in to comment.