Skip to content

Commit

Permalink
[MA-16]: Ensure the Add button is accessible with keyboard
Browse files Browse the repository at this point in the history
  • Loading branch information
SaurabhSharma-884 committed Dec 11, 2024
1 parent 7df4727 commit 527beac
Show file tree
Hide file tree
Showing 10 changed files with 20 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -216,9 +216,9 @@ export class AddGroupsToChannelModal extends React.PureComponent<Props, State> {
</div>
</div>
<div className='more-modal__actions'>
<div className='more-modal__actions--round'>
<button className='more-modal__actions--round'>
<i className='icon icon-plus'/>
</div>
</button>
</div>
</div>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -223,9 +223,9 @@ export class AddGroupsToTeamModal extends React.PureComponent<Props, State> {
</div>
</div>
<div className='more-modal__actions'>
<div className='more-modal__actions--round'>
<button className='more-modal__actions--round'>
<i className='icon icon-plus'/>
</div>
</button>
</div>
</div>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,11 @@ const MultiSelectOption = React.forwardRef(({
</div>
</div>
<div className='more-modal__actions'>
<div className='more-modal__actions--round'>
<button className='more-modal__actions--round'>
<i
className='icon icon-plus'
/>
</div>
</button>
</div>
</div>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,11 +135,11 @@ export class AddUsersToTeamModal extends React.PureComponent<Props, State> {
</div>
</div>
<div className='more-modal__actions'>
<div className='more-modal__actions--round'>
<button className='more-modal__actions--round'>
<i
className='icon icon-plus'
/>
</div>
</button>
</div>
</div>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,11 +137,11 @@ export class AddUsersToRoleModal extends React.PureComponent<Props, State> {
</div>
</div>
<div className='more-modal__actions'>
<div className='more-modal__actions--round'>
<button className='more-modal__actions--round'>
<i
className='icon icon-plus'
/>
</div>
</button>
</div>
</div>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -425,11 +425,11 @@ export class ChannelInviteModal extends React.PureComponent<Props, State> {
</div>
</div>
<div className='more-modal__actions'>
<div className='more-modal__actions--round'>
<button className='more-modal__actions--round'>
<i
className='icon icon-plus'
/>
</div>
</button>
</div>
</div>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -186,9 +186,9 @@ export class ChannelSelectorModal extends React.PureComponent<Props, State> {
</div>
</div>
<div className='more-modal__actions'>
<div className='more-modal__actions--round'>
<button className='more-modal__actions--round'>
<i className='icon icon-plus'/>
</div>
</button>
</div>
</div>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,9 @@ const ListItem = React.forwardRef((props: Props, ref?: React.Ref<HTMLDivElement>
}

<div className='more-modal__actions'>
<div className='more-modal__actions--round'>
<button className='more-modal__actions--round'>
<i className='icon icon-plus'/>
</div>
</button>
</div>
</div>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -190,9 +190,9 @@ export class TeamSelectorModal extends React.PureComponent<Props, State> {
</div>
</div>
<div className='more-modal__actions'>
<div className='more-modal__actions--round'>
<button className='more-modal__actions--round'>
<i className='fa fa-plus'/>
</div>
</button>
</div>
</div>
);
Expand Down
3 changes: 2 additions & 1 deletion webapp/channels/src/sass/components/_modal.scss
Original file line number Diff line number Diff line change
Expand Up @@ -931,11 +931,12 @@

.more-modal__actions--round {
display: none;
border: none;
width: 32px;
height: 32px;
line-height: 32px;
opacity: 0.75;
text-align: center;
padding: 0
}

.more-modal__right {
Expand Down

0 comments on commit 527beac

Please sign in to comment.