diff options
author | sdtsui <szehungdanieltsui@gmail.com> | 2017-08-10 07:27:55 +0800 |
---|---|---|
committer | sdtsui <szehungdanieltsui@gmail.com> | 2017-08-10 12:42:16 +0800 |
commit | 50f8535f7b732879103665ea28fdd79dc7ee01a2 (patch) | |
tree | 589e52f28c12ae68d45d648d6b4677a78da85d48 /ui | |
parent | 231b8a75427e2b14a3ef29fef0bc71c35acd97ee (diff) | |
download | tangerine-wallet-browser-50f8535f7b732879103665ea28fdd79dc7ee01a2.tar tangerine-wallet-browser-50f8535f7b732879103665ea28fdd79dc7ee01a2.tar.gz tangerine-wallet-browser-50f8535f7b732879103665ea28fdd79dc7ee01a2.tar.bz2 tangerine-wallet-browser-50f8535f7b732879103665ea28fdd79dc7ee01a2.tar.lz tangerine-wallet-browser-50f8535f7b732879103665ea28fdd79dc7ee01a2.tar.xz tangerine-wallet-browser-50f8535f7b732879103665ea28fdd79dc7ee01a2.tar.zst tangerine-wallet-browser-50f8535f7b732879103665ea28fdd79dc7ee01a2.zip |
Switch buy modal 'cancel' from text to button for accessibility
Diffstat (limited to 'ui')
-rw-r--r-- | ui/app/components/buy-options.js | 12 | ||||
-rw-r--r-- | ui/app/css/itcss/trumps/index.scss | 10 |
2 files changed, 19 insertions, 3 deletions
diff --git a/ui/app/components/buy-options.js b/ui/app/components/buy-options.js index d36328efd..7d640c007 100644 --- a/ui/app/components/buy-options.js +++ b/ui/app/components/buy-options.js @@ -16,6 +16,9 @@ function mapDispatchToProps (dispatch) { toCoinbase: (address) => { dispatch(actions.buyEth({ network: '1', address, amount: 0 })) }, + hideModal: () => { + dispatch(actions.hideModal()) + } } } @@ -66,9 +69,12 @@ BuyOptions.prototype.render = function () { ]), - h('div.modal-content-footer', { - style: {}, - }, 'Cancel'), + h('button', { + style: { + background: 'white', + }, + onClick: () => { this.props.hideModal() }, + }, h('div.modal-content-footer#modal-content-footer-text',{}, 'Cancel')), ]) ]) } diff --git a/ui/app/css/itcss/trumps/index.scss b/ui/app/css/itcss/trumps/index.scss index a6a6e4335..a1ed9d172 100644 --- a/ui/app/css/itcss/trumps/index.scss +++ b/ui/app/css/itcss/trumps/index.scss @@ -86,3 +86,13 @@ i.fa.fa-question-circle.fa-lg.menu-icon { // width: 80%; // } // } + + + +// This text is contained inside a div. +// ID needed to override user agent stylesheet. +// See components/modal.scss +#modal-content-footer-text { + font-family: 'DIN OT'; + font-size: 16px; +} |