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

Add caret to Add Token toggle

This commit is contained in:
Chi Kei Chan 2017-10-24 00:38:39 -07:00
parent 2871beebe6
commit ba9cefb24e
2 changed files with 16 additions and 2 deletions

View File

@ -350,7 +350,10 @@ AddTokenScreen.prototype.render = function () {
h('div.add-token__footers', [ h('div.add-token__footers', [
h('div.add-token__add-custom', { h('div.add-token__add-custom', {
onClick: () => this.setState({ isCollapsed: !isCollapsed }), onClick: () => this.setState({ isCollapsed: !isCollapsed }),
}, 'Add custom token'), }, [
'Add custom token',
h(`i.fa.fa-angle-${isCollapsed ? 'down' : 'up'}`),
]),
this.renderCustomForm(), this.renderCustomForm(),
]), ]),
]), ]),

View File

@ -109,7 +109,18 @@
cursor: pointer; cursor: pointer;
&:hover { &:hover {
background-color: $gallery; background-color: rgba(0, 0, 0, .05);
}
&:active {
background-color: rgba(0, 0, 0, .1);
}
.fa {
position: absolute;
right: 24px;
font-size: 24px;
line-height: 24px;
} }
} }