From a99e55f4c494f5a49b0c2840c5482b6f9ec2fde0 Mon Sep 17 00:00:00 2001 From: Suguru Hirahara Date: Wed, 1 Jun 2022 11:39:47 +0900 Subject: [PATCH] Use AccessibleButton for 'Reset All' link button on SetupEncryptionBody - Remove ButtonResetDefault to respect the concept of cascading Signed-off-by: Suguru Hirahara --- res/css/structures/auth/_SetupEncryptionBody.scss | 10 ++++++---- src/components/structures/auth/SetupEncryptionBody.tsx | 8 +++++--- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/res/css/structures/auth/_SetupEncryptionBody.scss b/res/css/structures/auth/_SetupEncryptionBody.scss index 1999fb581db..52651ec2a98 100644 --- a/res/css/structures/auth/_SetupEncryptionBody.scss +++ b/res/css/structures/auth/_SetupEncryptionBody.scss @@ -17,9 +17,11 @@ limitations under the License. .mx_SetupEncryptionBody_reset { color: $light-fg-color; margin-top: $font-14px; -} -.mx_SetupEncryptionBody_reset_link { - @mixin ButtonResetDefault; - color: $alert; + .mx_SetupEncryptionBody_reset_link { + &.mx_AccessibleButton_kind_link_inline { + padding: 0; + color: $alert; + } + } } diff --git a/src/components/structures/auth/SetupEncryptionBody.tsx b/src/components/structures/auth/SetupEncryptionBody.tsx index 2553f8fbaa0..5caaea0c988 100644 --- a/src/components/structures/auth/SetupEncryptionBody.tsx +++ b/src/components/structures/auth/SetupEncryptionBody.tsx @@ -212,11 +212,13 @@ export default class SetupEncryptionBody extends React.Component
{ _t("Forgotten or lost all recovery methods? Reset all", null, { - a: (sub) => , + , }) }