From d013ae79b701664c197bdacde1f01cc46b60aa2f Mon Sep 17 00:00:00 2001
From: "J. Ryan Stinnett"
Date: Thu, 26 Aug 2021 13:59:12 +0100
Subject: [PATCH] Fix changelog link colour back to blue
https://github.com/matrix-org/matrix-react-sdk/pull/5698 changed all dialog
links to green, which is not expected. In general, we use blue links for
information and green links for actions.
This resolves the regression by removing the general change and adjusting the
new links added by the above PR to be green as desired there.
Fixes https://github.com/vector-im/element-web/issues/18726
---
res/css/_common.scss | 5 -----
.../tabs/room/SecurityRoomSettingsTab.tsx | 20 +++++++++++--------
2 files changed, 12 insertions(+), 13 deletions(-)
diff --git a/res/css/_common.scss b/res/css/_common.scss
index 5fcc10add0..a16e7d4d8f 100644
--- a/res/css/_common.scss
+++ b/res/css/_common.scss
@@ -381,11 +381,6 @@ input[type=text]:focus, input[type=password]:focus, textarea:focus {
font-size: $font-14px;
color: $primary-content;
word-wrap: break-word;
-
- a {
- color: $accent-color;
- cursor: pointer;
- }
}
.mx_Dialog_buttons {
diff --git a/src/components/views/settings/tabs/room/SecurityRoomSettingsTab.tsx b/src/components/views/settings/tabs/room/SecurityRoomSettingsTab.tsx
index d9e97d570b..081b1a8698 100644
--- a/src/components/views/settings/tabs/room/SecurityRoomSettingsTab.tsx
+++ b/src/components/views/settings/tabs/room/SecurityRoomSettingsTab.tsx
@@ -149,10 +149,12 @@ export default class SecurityRoomSettingsTab extends React.Componentnew encrypted room for " +
"the conversation you plan to have.",
null,
- { "a": (sub) => {
- dialog.close();
- this.createNewRoom(false, true);
- }}> { sub } },
+ { "a": (sub) => {
+ dialog.close();
+ this.createNewRoom(false, true);
+ }}> { sub } },
) }
,
@@ -248,10 +250,12 @@ export default class SecurityRoomSettingsTab extends React.Component {
- dialog.close();
- this.createNewRoom(true, false);
- }}> { sub } ,
+ "a": (sub) => {
+ dialog.close();
+ this.createNewRoom(true, false);
+ }}> { sub } ,
},
) }
,