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

Switch buy modal 'cancel' from text to button for accessibility

This commit is contained in:
sdtsui 2017-08-09 16:27:55 -07:00
parent 231b8a7542
commit 50f8535f7b
2 changed files with 19 additions and 3 deletions

View File

@ -16,6 +16,9 @@ function mapDispatchToProps (dispatch) {
toCoinbase: (address) => { toCoinbase: (address) => {
dispatch(actions.buyEth({ network: '1', address, amount: 0 })) 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', { h('button', {
style: {}, style: {
}, 'Cancel'), background: 'white',
},
onClick: () => { this.props.hideModal() },
}, h('div.modal-content-footer#modal-content-footer-text',{}, 'Cancel')),
]) ])
]) ])
} }

View File

@ -86,3 +86,13 @@ i.fa.fa-question-circle.fa-lg.menu-icon {
// width: 80%; // 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;
}