Skip to content

Commit 1db3ba6

Browse files
author
Luke Barnard
committed
Rejig the PaswordNagBar
- Change the nag bar to read "To return to your account in future you need to set a password" - Underline "Set a password" - Make the whole thing clickable
1 parent 790fc7c commit 1db3ba6

2 files changed

Lines changed: 8 additions & 3 deletions

File tree

‎src/components/views/globals/PasswordNagBar.js‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,18 +39,19 @@ export default React.createClass({
3939

4040
render: function() {
4141
const AccessibleButton = sdk.getComponent('elements.AccessibleButton');
42+
const toolbarClasses = "mx_MatrixToolbar mx_MatrixToolbar_clickable";
4243
return (
43-
<div className="mx_MatrixToolbar">
44+
<div className={toolbarClasses} onClick={this.onUpdateClicked}>
4445
<img className="mx_MatrixToolbar_warning"
4546
src="img/warning.svg"
4647
width="24"
4748
height="23"
4849
alt="Warning"
4950
/>
5051
<div className="mx_MatrixToolbar_content">
51-
To be able to return to your account, you need to set a password.
52+
To return to your account in future you need to <u>set a password</u>
5253
</div>
53-
<button className="mx_MatrixToolbar_action" onClick={this.onUpdateClicked}>
54+
<button className="mx_MatrixToolbar_action">
5455
Set Password
5556
</button>
5657
</div>

‎src/skins/vector/css/vector-web/views/globals/_MatrixToolbar.scss‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ limitations under the License.
3939
cursor: pointer;
4040
}
4141

42+
.mx_MatrixToolbar_clickable {
43+
cursor: pointer;
44+
}
45+
4246
.mx_MatrixToolbar_close {
4347
cursor: pointer;
4448
}

0 commit comments

Comments
 (0)