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>pull/28788/head^2
parent
54239464fa
commit
b5ed051ecc
|
@ -17,9 +17,11 @@ limitations under the License.
|
||||||
.mx_SetupEncryptionBody_reset {
|
.mx_SetupEncryptionBody_reset {
|
||||||
color: $light-fg-color;
|
color: $light-fg-color;
|
||||||
margin-top: $font-14px;
|
margin-top: $font-14px;
|
||||||
}
|
|
||||||
|
|
||||||
.mx_SetupEncryptionBody_reset_link {
|
.mx_SetupEncryptionBody_reset_link {
|
||||||
@mixin ButtonResetDefault;
|
&.mx_AccessibleButton_kind_link_inline {
|
||||||
color: $alert;
|
padding: 0;
|
||||||
|
color: $alert;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -212,11 +212,13 @@ export default class SetupEncryptionBody extends React.Component<IProps, IState>
|
||||||
</div>
|
</div>
|
||||||
<div className="mx_SetupEncryptionBody_reset">
|
<div className="mx_SetupEncryptionBody_reset">
|
||||||
{ _t("Forgotten or lost all recovery methods? <a>Reset all</a>", null, {
|
{ _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}
|
onClick={this.onResetClick}
|
||||||
className="mx_SetupEncryptionBody_reset_link mx_Dialog_nonDialogButton">
|
>
|
||||||
{ sub }
|
{ sub }
|
||||||
</button>,
|
</AccessibleButton>,
|
||||||
}) }
|
}) }
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue