Skip to content

Commit

Permalink
Add aria-current to add user tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
Adrien Jézégou authored and AdJez committed Oct 26, 2023
1 parent d1d16bd commit 6c9e431
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ export const ReferralUsersModal: React.FC = () => {
type="button"
onClick={() => setTabActive('name')}
className={`w-1/2 dashboard-tab ${tabActive === 'name' && 'active'}`}
aria-current={tabActive === 'name'}
>
<span>
<FormattedMessage {...messages.addByName} />
Expand All @@ -80,6 +81,7 @@ export const ReferralUsersModal: React.FC = () => {
type="button"
onClick={() => setTabActive('email')}
className={`w-1/2 dashboard-tab ${tabActive === 'email' && 'active'}`}
aria-current={tabActive === 'email'}
>
<span>
<FormattedMessage {...messages.addByMail} />
Expand Down

0 comments on commit 6c9e431

Please sign in to comment.