1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

Add alt titles to most critical icons

We can change most of these later to a more "elegant" solution, but from the user perspective, having these tooltips is comforting imo.
This commit is contained in:
Kevin Serrano 2016-06-27 11:55:05 -07:00
parent 36c7ffa585
commit 8c7511e9da
3 changed files with 4 additions and 0 deletions

View File

@ -107,6 +107,7 @@ AccountDetailScreen.prototype.render = function () {
h('img.cursor-pointer.color-orange', { h('img.cursor-pointer.color-orange', {
src: 'images/copy.svg', src: 'images/copy.svg',
title: 'Copy Address',
onClick: () => copyToClipboard(ethUtil.toChecksumAddress(selected)), onClick: () => copyToClipboard(ethUtil.toChecksumAddress(selected)),
style: { style: {
margin: '0px 5px', margin: '0px 5px',
@ -115,6 +116,7 @@ AccountDetailScreen.prototype.render = function () {
h('img.cursor-pointer.color-orange', { h('img.cursor-pointer.color-orange', {
src: 'images/key-32.png', src: 'images/key-32.png',
title: 'Export Private Key',
onClick: () => this.requestAccountExport(selected), onClick: () => this.requestAccountExport(selected),
style: { style: {
margin: '0px 5px', margin: '0px 5px',

View File

@ -62,6 +62,7 @@ NewComponent.prototype.render = function () {
}, },
}, [ }, [
h('img.cursor-pointer.color-orange', { h('img.cursor-pointer.color-orange', {
title: 'Copy Address',
src: 'images/copy.svg', src: 'images/copy.svg',
onClick: (event) => { onClick: (event) => {
event.stopPropagation() event.stopPropagation()

View File

@ -157,6 +157,7 @@ App.prototype.renderAppBar = function () {
width: '23.5px', width: '23.5px',
marginRight: '8px', marginRight: '8px',
}, },
title: 'Switch Accounts',
onClick: (event) => { onClick: (event) => {
event.stopPropagation() event.stopPropagation()
this.props.dispatch(actions.showAccountsPage()) this.props.dispatch(actions.showAccountsPage())