Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit b5ed051

Browse files
authored
Use AccessibleButton for 'Reset All' link button on SetupEncryptionBody (#8730)
- Remove ButtonResetDefault to respect the concept of cascading Signed-off-by: Suguru Hirahara <[email protected]>
1 parent 5423946 commit b5ed051

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed

res/css/structures/auth/_SetupEncryptionBody.scss

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,11 @@ limitations under the License.
1717
.mx_SetupEncryptionBody_reset {
1818
color: $light-fg-color;
1919
margin-top: $font-14px;
20-
}
2120

22-
.mx_SetupEncryptionBody_reset_link {
23-
@mixin ButtonResetDefault;
24-
color: $alert;
21+
.mx_SetupEncryptionBody_reset_link {
22+
&.mx_AccessibleButton_kind_link_inline {
23+
padding: 0;
24+
color: $alert;
25+
}
26+
}
2527
}

src/components/structures/auth/SetupEncryptionBody.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -212,11 +212,13 @@ export default class SetupEncryptionBody extends React.Component<IProps, IState>
212212
</div>
213213
<div className="mx_SetupEncryptionBody_reset">
214214
{ _t("Forgotten or lost all recovery methods? <a>Reset all</a>", null, {
215-
a: (sub) => <button
215+
a: (sub) => <AccessibleButton
216+
kind="link_inline"
217+
className="mx_SetupEncryptionBody_reset_link"
216218
onClick={this.onResetClick}
217-
className="mx_SetupEncryptionBody_reset_link mx_Dialog_nonDialogButton">
219+
>
218220
{ sub }
219-
</button>,
221+
</AccessibleButton>,
220222
}) }
221223
</div>
222224
</div>

0 commit comments

Comments
 (0)