Tooltip: Use AccessibleButton
in dialogs (#12460)
* Update dialogs * Use default right placement
This commit is contained in:
parent
44e2a6d070
commit
9aeaa388cc
3 changed files with 15 additions and 14 deletions
|
@ -939,7 +939,9 @@ const SpotlightDialog: React.FC<IProps> = ({ initialText = "", initialFilter = n
|
|||
setInviteLinkCopied(true);
|
||||
copyPlaintext(ownInviteLink);
|
||||
}}
|
||||
onHideTooltip={() => setInviteLinkCopied(false)}
|
||||
onTooltipOpenChange={(open) => {
|
||||
if (!open) setInviteLinkCopied(false);
|
||||
}}
|
||||
title={inviteLinkCopied ? _t("common|copied") : _t("action|copy")}
|
||||
>
|
||||
<span className="mx_AccessibleButton mx_AccessibleButton_hasKind mx_AccessibleButton_kind_primary_outline">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue