Skip to content

Commit

Permalink
feat(icons): update search and download icons
Browse files Browse the repository at this point in the history
  • Loading branch information
schnogz committed Jan 30, 2020
1 parent dd21ad5 commit 8dc91ff
Show file tree
Hide file tree
Showing 10 changed files with 276 additions and 242 deletions.
Binary file not shown.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
487 changes: 256 additions & 231 deletions packages/blockchain-info-components/src/Fonts/Icomoon/selection.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions packages/blockchain-info-components/src/Form/TextInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ const InputIcon = styled(Icon)`
position: absolute;
top: 12px;
left: 12px;
color: ${props => props.theme['grey400']};
`
const selectBorderColor = state => {
switch (state) {
Expand Down
3 changes: 2 additions & 1 deletion packages/blockchain-info-components/src/Icons/Icomoon.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ export default {
'credit-card': '\\e941',
'credit-card-filled': '\\e90e',
dollars: '\\e942',
download: '\\e911',
email: '\\e934',
eth: '\\e97b',
'eth-circle': '\\e989',
Expand All @@ -59,6 +60,7 @@ export default {
'lightning-bolt': '\\e921',
'line-graph-up': '\\e933',
lock: '\\e949',
magnifier: '\\e943',
mobile: '\\e967',
'nav-buy': '\\e988',
'open-in-new-tab': '\\e979',
Expand All @@ -74,7 +76,6 @@ export default {
'question-in-circle-filled': '\\e909',
refresh: '\\e90a',
request: '\\e912',
search: '\\e950',
send: '\\e925',
shield: '\\e908',
spade: '\\e92f',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ const Faq = props => (
</ContentHeader>
<Search>
<Field name='search' component={TextBox} />
<Icon name='search' size='20px' weight={400} color='gray-3' />
<Icon name='magnifier' size='20px' weight={400} color='gray-3' />
</Search>
<Content>
{props.filteredContent.length > 0 &&
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ const MenuTop = () => (
</TabMenu>
<Search data-e2e='walletSettingsSearch'>
<Field name='search' height='40px' component={TextBox} />
<SearchIcon name='search' size='20px' />
<SearchIcon name='magnifier' size='20px' />
</Search>
</Container>
</HorizontalMenu>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,12 @@ const ReportingIcon = styled(Icon)`
width: 40px;
margin-right: 10px;
`
const SearchField = styled(Field)`
> div > span {
top: 14px;
font-size: 18px;
}
`
const PRIVATE_KEY_EXPORT_COINS = ['ETH', 'XLM']
const TX_EXPORT_COINS = ['BTC', 'BCH']

Expand Down Expand Up @@ -114,19 +120,19 @@ const TransactionFilters = ({
)}
{includes(coin, TX_EXPORT_COINS) && (
<ReportingIcon
name='request'
size='24px'
color='grey400'
cursor
color='gray-2'
onClick={handleClickReporting}
data-e2e='generateTxReport'
name='download'
onClick={handleClickReporting}
size='20px'
/>
)}
<Field
<SearchField
component={TextBox}
data-e2e='transactionsMenuSearchBox'
height='40px'
icon='search'
height='45px'
icon='magnifier'
name='search'
placeholder='Search'
/>
Expand Down

0 comments on commit 8dc91ff

Please sign in to comment.