Skip to content

Commit

Permalink
chore: fix button tabindex
Browse files Browse the repository at this point in the history
  • Loading branch information
DRiFTy17 committed Dec 14, 2023
1 parent 659d593 commit eec1a53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/button/base/base-button-adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ export abstract class BaseButtonAdapter extends BaseAdapter<IBaseButton> impleme
const role = this._component.getAttribute('role');
const setAttribute = !role || ['button', 'link'].includes(role);
this._component[setDefaultAria]({ role: this._anchorElement ? 'link' : 'button' }, { setAttribute });
this._component[isFocusable] = !!this._anchorElement ?? !this._component.disabled;
this._component[isFocusable] = !!this._anchorElement || !this._component.disabled;
}

/**
Expand Down

0 comments on commit eec1a53

Please sign in to comment.