Skip to content

Commit 864192b

Browse files
authored
Merge pull request #239 from blocknative/enhancement/wallet-selected-design
Change design for wallet button when selected. Closes #232
2 parents c3fcb05 + 4185958 commit 864192b

File tree

1 file changed

+20
-7
lines changed

1 file changed

+20
-7
lines changed

src/elements/IconButton.svelte

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,10 @@
5555
}
5656
5757
span {
58+
width: 100%;
59+
display: flex;
60+
justify-content: space-between;
61+
align-items: center;
5862
font-size: inherit;
5963
margin-left: 0.66em;
6064
font-weight: bold;
@@ -63,21 +67,28 @@
6367
}
6468
6569
i {
66-
font-size: 1.6rem;
67-
margin-left: 0.5rem;
70+
font-size: 0.8rem;
71+
font-weight: lighter;
72+
color: inherit;
73+
text-decoration: underline;
6874
}
6975
7076
@media only screen and (max-width: 450px) {
7177
button {
7278
width: 100%;
7379
}
7480
}
81+
82+
.bn-onboard-selected-wallet {
83+
background: #c3c3c3;
84+
}
7585
</style>
7686

7787
<button
7888
on:click={onclick}
7989
class="bn-onboard-custom bn-onboard-icon-button"
80-
class:bn-onboard-dark-mode-background-hover={$app.darkMode}>
90+
class:bn-onboard-dark-mode-background-hover={$app.darkMode}
91+
class:bn-onboard-selected-wallet={currentlySelected}>
8192
<div>
8293
{#if loadingWallet === text}
8394
<Spinner />
@@ -87,8 +98,10 @@
8798
<img src={iconSrc} srcset={iconSrcSet} alt={text} />
8899
{/if}
89100
</div>
90-
<span>{text}</span>
91-
{#if currentlySelected}
92-
<i>*</i>
93-
{/if}
101+
<span>
102+
{text}
103+
{#if currentlySelected}
104+
<i>selected</i>
105+
{/if}
106+
</span>
94107
</button>

0 commit comments

Comments
 (0)