Use accessible button for copy icon.
This commit is contained in:
parent
f64ef65f97
commit
5426d9f105
2 changed files with 7 additions and 4 deletions
|
@ -30,6 +30,7 @@ import * as ContextMenu from "../../structures/ContextMenu";
|
||||||
import {toRightOf} from "../../structures/ContextMenu";
|
import {toRightOf} from "../../structures/ContextMenu";
|
||||||
import {copyPlaintext, selectText} from "../../../utils/strings";
|
import {copyPlaintext, selectText} from "../../../utils/strings";
|
||||||
import StyledCheckbox from '../elements/StyledCheckbox';
|
import StyledCheckbox from '../elements/StyledCheckbox';
|
||||||
|
import AccessibleTooltipButton from '../elements/AccessibleTooltipButton';
|
||||||
|
|
||||||
const socials = [
|
const socials = [
|
||||||
{
|
{
|
||||||
|
@ -210,9 +211,11 @@ export default class ShareDialog extends React.PureComponent<IProps, IState> {
|
||||||
>
|
>
|
||||||
{ matrixToUrl }
|
{ matrixToUrl }
|
||||||
</a>
|
</a>
|
||||||
<a href={matrixToUrl} className="mx_ShareDialog_matrixto_copy" onClick={this.onCopyClick}>
|
<AccessibleTooltipButton
|
||||||
<div> </div>
|
title={_t("Copy")}
|
||||||
</a>
|
onClick={this.onCopyClick}
|
||||||
|
className="mx_ShareDialog_matrixto_copy"
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
{ checkbox }
|
{ checkbox }
|
||||||
<hr />
|
<hr />
|
||||||
|
|
|
@ -1399,6 +1399,7 @@
|
||||||
"%(senderDisplayName)s changed the room avatar to <img/>": "%(senderDisplayName)s changed the room avatar to <img/>",
|
"%(senderDisplayName)s changed the room avatar to <img/>": "%(senderDisplayName)s changed the room avatar to <img/>",
|
||||||
"This room is a continuation of another conversation.": "This room is a continuation of another conversation.",
|
"This room is a continuation of another conversation.": "This room is a continuation of another conversation.",
|
||||||
"Click here to see older messages.": "Click here to see older messages.",
|
"Click here to see older messages.": "Click here to see older messages.",
|
||||||
|
"Copy": "Copy",
|
||||||
"Copied!": "Copied!",
|
"Copied!": "Copied!",
|
||||||
"Failed to copy": "Failed to copy",
|
"Failed to copy": "Failed to copy",
|
||||||
"Add an Integration": "Add an Integration",
|
"Add an Integration": "Add an Integration",
|
||||||
|
@ -2217,7 +2218,6 @@
|
||||||
"Confirm your recovery passphrase": "Confirm your recovery passphrase",
|
"Confirm your recovery passphrase": "Confirm your recovery passphrase",
|
||||||
"Store your Security Key somewhere safe, like a password manager or a safe, as it’s used to safeguard your encrypted data.": "Store your Security Key somewhere safe, like a password manager or a safe, as it’s used to safeguard your encrypted data.",
|
"Store your Security Key somewhere safe, like a password manager or a safe, as it’s used to safeguard your encrypted data.": "Store your Security Key somewhere safe, like a password manager or a safe, as it’s used to safeguard your encrypted data.",
|
||||||
"Download": "Download",
|
"Download": "Download",
|
||||||
"Copy": "Copy",
|
|
||||||
"Unable to query secret storage status": "Unable to query secret storage status",
|
"Unable to query secret storage status": "Unable to query secret storage status",
|
||||||
"Retry": "Retry",
|
"Retry": "Retry",
|
||||||
"If you cancel now, you may lose encrypted messages & data if you lose access to your logins.": "If you cancel now, you may lose encrypted messages & data if you lose access to your logins.",
|
"If you cancel now, you may lose encrypted messages & data if you lose access to your logins.": "If you cancel now, you may lose encrypted messages & data if you lose access to your logins.",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue