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

Commit

Permalink
Fix changelog link colour back to blue
Browse files Browse the repository at this point in the history
#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 element-hq/element-web#18726
  • Loading branch information
jryans committed Aug 26, 2021
1 parent e79ac4b commit d013ae7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 13 deletions.
5 changes: 0 additions & 5 deletions res/css/_common.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,10 +149,12 @@ export default class SecurityRoomSettingsTab extends React.Component<IProps, ISt
"To avoid these issues, create a <a>new encrypted room</a> for " +
"the conversation you plan to have.",
null,
{ "a": (sub) => <a onClick={() => {
dialog.close();
this.createNewRoom(false, true);
}}> { sub } </a> },
{ "a": (sub) => <a
className="mx_linkButton"
onClick={() => {
dialog.close();
this.createNewRoom(false, true);
}}> { sub } </a> },
) } </p>
</div>,

Expand Down Expand Up @@ -248,10 +250,12 @@ export default class SecurityRoomSettingsTab extends React.Component<IProps, ISt
"you plan to have.",
null,
{
"a": (sub) => <a onClick={() => {
dialog.close();
this.createNewRoom(true, false);
}}> { sub } </a>,
"a": (sub) => <a
className="mx_linkButton"
onClick={() => {
dialog.close();
this.createNewRoom(true, false);
}}> { sub } </a>,
},
) } </p>
</div>,
Expand Down

0 comments on commit d013ae7

Please sign in to comment.