Skip to content

Commit ea63914

Browse files
committed
refactor: use compound button instead of accessible button
1 parent ef3f6af commit ea63914

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

res/css/views/dialogs/_InviteDialog.pcss

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,7 @@ Please see LICENSE files in the repository root for full details.
6060
.mx_InviteDialog_goButton {
6161
min-width: 48px;
6262
margin-inline-start: 10px;
63-
height: 25px;
64-
line-height: $font-25px;
63+
min-height: 41px;
6564
}
6665
}
6766

src/components/views/dialogs/InviteDialog.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import { type MatrixCall } from "matrix-js-sdk/src/webrtc/call";
1313
import { logger } from "matrix-js-sdk/src/logger";
1414
import { uniqBy } from "lodash";
1515
import { CloseIcon } from "@vector-im/compound-design-tokens/assets/web/icons";
16+
import { Button } from "@vector-im/compound-web";
1617

1718
import { Icon as EmailPillAvatarIcon } from "../../../../res/img/icon-email-pill-avatar.svg";
1819
import { _t, _td } from "../../../languageHandler";
@@ -1369,14 +1370,15 @@ export default class InviteDialog extends React.PureComponent<Props, IInviteDial
13691370

13701371
const goButton =
13711372
this.props.kind == InviteKind.CallTransfer ? null : (
1372-
<AccessibleButton
1373+
<Button
13731374
kind="primary"
1374-
onClick={goButtonFn}
1375+
size="sm"
1376+
onClick={goButtonFn ?? undefined}
13751377
className="mx_InviteDialog_goButton"
13761378
disabled={this.state.busy || !this.hasSelection()}
13771379
>
13781380
{buttonText}
1379-
</AccessibleButton>
1381+
</Button>
13801382
);
13811383

13821384
return (

0 commit comments

Comments
 (0)