Use AccessibleButton for 'Reset All' link button on SetupEncryptionBody (#8730)
- Remove ButtonResetDefault to respect the concept of cascading Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>
This commit is contained in:
parent
54239464fa
commit
b5ed051ecc
2 changed files with 11 additions and 7 deletions
|
@ -212,11 +212,13 @@ export default class SetupEncryptionBody extends React.Component<IProps, IState>
|
|||
</div>
|
||||
<div className="mx_SetupEncryptionBody_reset">
|
||||
{ _t("Forgotten or lost all recovery methods? <a>Reset all</a>", null, {
|
||||
a: (sub) => <button
|
||||
a: (sub) => <AccessibleButton
|
||||
kind="link_inline"
|
||||
className="mx_SetupEncryptionBody_reset_link"
|
||||
onClick={this.onResetClick}
|
||||
className="mx_SetupEncryptionBody_reset_link mx_Dialog_nonDialogButton">
|
||||
>
|
||||
{ sub }
|
||||
</button>,
|
||||
</AccessibleButton>,
|
||||
}) }
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue