Consolidate, simplify and improve copied tooltips (#7799)
This commit is contained in:
parent
226eed2a7f
commit
76fb2abae1
6 changed files with 31 additions and 50 deletions
|
@ -740,20 +740,7 @@ export default class CreateSecretStorageDialog extends React.PureComponent<IProp
|
|||
onClick={this.onCopyClick}
|
||||
disabled={this.state.phase === Phase.Storing}
|
||||
>
|
||||
<span
|
||||
className="mx_CreateSecretStorageDialog_recoveryKeyCopyButtonText"
|
||||
style={{ height: this.state.copied ? '0' : 'auto' }}
|
||||
aria-hidden={this.state.copied}
|
||||
>
|
||||
{ _t("Copy") }
|
||||
</span>
|
||||
<span
|
||||
className="mx_CreateSecretStorageDialog_recoveryKeyCopyButtonText"
|
||||
style={{ height: this.state.copied ? 'auto' : '0' }}
|
||||
aria-hidden={!this.state.copied}
|
||||
>
|
||||
{ _t("Copied!") }
|
||||
</span>
|
||||
{ this.state.copied ? _t("Copied!") : _t("Copy") }
|
||||
</AccessibleButton>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue