-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Add SelectionList component to DRY up #4639
Conversation
I think left-aligned boxes would give it a cleaner look. |
Actually it is the standard layout for the Happy to have that logged and play around, obviously impacts everywhere that is used - Home, Vaults, these selectors. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small comments, one grumble :
I liked the difference of background between a selected only and a default account. It made it a bit more obvious than just the filled star. I really like the new greyscale/colours layout though.
One issue: the account selection layout in the Parity Bar looks a bit broken for me (scroll bar whereas it shouldn't be needed):
permissionStore.selectAccount(account.address); | ||
}; | ||
onMakeDefault = (account) => { | ||
console.log('onMakeDefault', account); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might want to get rid of this one.
|
||
let className; | ||
onSelect = (account) => { | ||
console.log('onSelect', account); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above.
outline: none; | ||
} | ||
.unselected { | ||
filter: grayscale(100%); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Will look into the scrollbar issue. EDIT: Fixed. |
One last comment:
|
See it as annoying, but don't have any fixes for it in mind. So feel free to log for enhancement however. |
All right, will do. |
ui/SelectionList
~/modals/DappPermissions
&~/modals/AddDapp
removing selection duplication~/modals/VaultAccounts
(addressing code TODO re duplication)~/views/ParityBar
to use selection component