Skip to content

Commit 196e64c

Browse files
Merge pull request #2 from rastajpa/feat/eth-icon
FEAT: eth icon
2 parents 9c8921f + 2be42ad commit 196e64c

File tree

4 files changed

+32
-6
lines changed

4 files changed

+32
-6
lines changed
Lines changed: 8 additions & 0 deletions
Loading
Lines changed: 13 additions & 0 deletions
Loading

packages/insight/src/components/head-nav/head-nav.html

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@
55
<ion-icon name="search" [color]="!showSearch ? 'light' : 'dark'"></ion-icon>
66
</button>
77
<form class="search" (ngSubmit)="search($event)">
8-
<input dir="auto" placeholder="{{ 'Search for block, transaction or address' }}" [(ngModel)]="q" name="search"
9-
autocomplete="off" autocorrect="off" spellcheck="false">
8+
<input dir="auto" placeholder="{{ 'Search for block, transaction or address' }}" [(ngModel)]="q" name="search" autocomplete="off" autocorrect="off" spellcheck="false">
109
</form>
1110

1211
<ion-buttons>
13-
<button ion-button (click)="changeCurrency($event)">
14-
<ion-icon name="logo-bitcoin" *ngIf="currencyProvider?.currencySymbol !== 'USD'"></ion-icon>
12+
<button ion-button (click)="changeCurrency($event)" class="cn-button">
13+
<ion-icon name="logo-bitcoin" *ngIf="(chainNetwork.chain === 'BTC' || chainNetwork.chain === 'BCH') && currencyProvider?.currencySymbol !== 'USD'"></ion-icon>
1514
<ion-icon name="logo-usd" *ngIf="currencyProvider?.currencySymbol === 'USD'"></ion-icon>
15+
<img class="eth-icon" src="assets/img/ethicon.svg" *ngIf="chainNetwork.chain === 'ETH' && currencyProvider?.currencySymbol !== 'USD'" width="12">
1616
&nbsp;
1717
{{ currencyProvider?.currencySymbol }}
1818
&nbsp;
@@ -26,8 +26,7 @@
2626

2727
<ion-toolbar class="mobile-searchbar" fixed [hidden]="!showSearch">
2828
<form (ngSubmit)="search($event)">
29-
<ion-searchbar #searchbar placeholder="{{ 'Search for block, transaction or address' }}" [(ngModel)]="q"
30-
name="search"></ion-searchbar>
29+
<ion-searchbar #searchbar placeholder="{{ 'Search for block, transaction or address' }}" [(ngModel)]="q" name="search"></ion-searchbar>
3130
</form>
3231
</ion-toolbar>
3332
</ion-header>

packages/insight/src/components/head-nav/head-nav.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,4 +62,10 @@ head-nav {
6262
display: none;
6363
}
6464
}
65+
.cn-button:hover,
66+
.cn-button:focus {
67+
img{
68+
filter: invert(100%) contrast(44%);
69+
}
70+
}
6571
}

0 commit comments

Comments
 (0)