Skip to content

Commit

Permalink
[MA-6]: Fixed adding aria-label logic in team sidebar
Browse files Browse the repository at this point in the history
  • Loading branch information
ayush-chauhan233 committed Dec 9, 2024
1 parent 3224e0d commit aea8103
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,13 @@ export default function TeamButton({
}
}

if (!isNotCreateTeamButton) {
ariaLabel = formatMessage({
id: 'team.button.create.ariaLabel',
defaultMessage: displayName,
});
}

ariaLabel = ariaLabel.toLowerCase();

const content = (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,7 @@ export default class TeamSidebar extends React.PureComponent<Props, State> {
}
content={plusIcon}
switchTeam={this.props.actions.switchTeam}
displayName='Create a Team'
/>
</SystemPermissionGate>,
);
Expand Down

0 comments on commit aea8103

Please sign in to comment.