Add caret to Add Token toggle

feature/default_network_editable
Chi Kei Chan 7 years ago
parent 2871beebe6
commit ba9cefb24e
  1. 5
      ui/app/add-token.js
  2. 13
      ui/app/css/itcss/components/add-token.scss

@ -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(),
]), ]),
]), ]),

@ -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;
} }
} }

Loading…
Cancel
Save