mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Cursor pointer and hover background on from and to dropdown items.
This commit is contained in:
parent
a33ced3994
commit
08d9ecc045
@ -22,6 +22,7 @@ module.exports = connect(mapStateToProps)(AccountListItem)
|
|||||||
|
|
||||||
AccountListItem.prototype.render = function () {
|
AccountListItem.prototype.render = function () {
|
||||||
const {
|
const {
|
||||||
|
className,
|
||||||
account,
|
account,
|
||||||
handleClick,
|
handleClick,
|
||||||
icon = null,
|
icon = null,
|
||||||
@ -34,6 +35,7 @@ AccountListItem.prototype.render = function () {
|
|||||||
const { name, address, balance } = account || {}
|
const { name, address, balance } = account || {}
|
||||||
|
|
||||||
return h('div.account-list-item', {
|
return h('div.account-list-item', {
|
||||||
|
className,
|
||||||
onClick: () => handleClick({ name, address, balance }),
|
onClick: () => handleClick({ name, address, balance }),
|
||||||
}, [
|
}, [
|
||||||
|
|
||||||
|
@ -35,6 +35,7 @@ FromDropdown.prototype.renderDropdown = function () {
|
|||||||
h('div.send-v2__from-dropdown__list', {}, [
|
h('div.send-v2__from-dropdown__list', {}, [
|
||||||
|
|
||||||
...accounts.map(account => h(AccountListItem, {
|
...accounts.map(account => h(AccountListItem, {
|
||||||
|
className: 'account-list-item__dropdown',
|
||||||
account,
|
account,
|
||||||
handleClick: () => {
|
handleClick: () => {
|
||||||
onSelect(account)
|
onSelect(account)
|
||||||
|
@ -38,6 +38,7 @@ ToAutoComplete.prototype.renderDropdown = function () {
|
|||||||
|
|
||||||
...accountsToRender.map(account => h(AccountListItem, {
|
...accountsToRender.map(account => h(AccountListItem, {
|
||||||
account,
|
account,
|
||||||
|
className: 'account-list-item__dropdown',
|
||||||
handleClick: () => {
|
handleClick: () => {
|
||||||
onChange(account.address)
|
onChange(account.address)
|
||||||
closeDropdown()
|
closeDropdown()
|
||||||
|
@ -69,4 +69,15 @@
|
|||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&__dropdown {
|
||||||
|
&:hover {
|
||||||
|
background: rgba($alto, .2);
|
||||||
|
cursor: pointer;
|
||||||
|
|
||||||
|
input {
|
||||||
|
background: rgba($alto, .1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user