Skip to content

Commit f48cdfc

Browse files
authored
Merge pull request #60 from blocknative/develop
Release 0.2.8
2 parents 3bd054a + eec8c1c commit f48cdfc

16 files changed

+98
-5
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "bnc-onboard",
3-
"version": "0.2.7",
3+
"version": "0.2.8",
44
"description": "Onboard users to web3 by allowing them to select a wallet, get that wallet ready to transact and have access to synced wallet state.",
55
"keywords": [
66
"ethereum",

src/components/Modal.svelte

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,11 @@
3737
border-radius: 10px;
3838
box-shadow: 0 1px 5px 0 rgba(0, 0, 0, 0.1);
3939
font-family: "Helvetica Neue";
40+
font-size: inherit;
4041
padding: 1.33em;
4142
position: relative;
4243
overflow: hidden;
43-
max-width: 36em;
44+
max-width: 37em;
4445
color: #4a4a4a;
4546
}
4647
@@ -51,6 +52,7 @@
5152
padding: 0.8em;
5253
top: 1.33em;
5354
right: 1.33em;
55+
font-size: inherit;
5456
border-radius: 5px;
5557
transition: background 200ms ease-in-out;
5658
display: flex;

src/components/ModalHeader.svelte

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
header {
1010
display: flex;
1111
align-items: center;
12+
font-size: inherit;
1213
margin-bottom: 0.66em;
1314
}
1415
@@ -17,6 +18,7 @@
1718
display: flex;
1819
justify-content: center;
1920
align-items: center;
21+
font-size: inherit;
2022
padding: 0.6em;
2123
border-radius: 30px;
2224
background: #eeeeee;

src/components/SelectedWallet.svelte

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,13 @@
1111
<style>
1212
section {
1313
color: inherit;
14+
font-size: inherit;
1415
display: block;
1516
}
1617
1718
footer {
1819
display: flex;
20+
font-size: inherit;
1921
justify-content: space-between;
2022
}
2123
</style>

src/components/Wallets.svelte

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,21 +20,32 @@
2020
max-height: 66vh;
2121
overflow-y: scroll;
2222
padding: 0;
23+
scrollbar-width: none;
2324
font-family: "Helvetica Neue";
25+
font-size: inherit;
2426
line-height: 1.15;
2527
box-sizing: border-box;
2628
}
2729
2830
div {
2931
width: 100%;
3032
display: flex;
33+
font-size: inherit;
3134
justify-content: center;
3235
}
3336
37+
::-webkit-scrollbar {
38+
display: none;
39+
}
40+
3441
@media only screen and (max-width: 700px) {
3542
ul li {
3643
width: 100%;
3744
}
45+
46+
ul {
47+
scrollbar-width: unset;
48+
}
3849
}
3950
</style>
4051

src/elements/IconButton.svelte

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
border: none;
1616
margin: 0.33em 0;
1717
background: inherit;
18+
font-size: inherit;
1819
width: 18em;
1920
padding: 0.625em 1.25em;
2021
transition: box-shadow 150ms ease-in-out, background 200ms ease-in-out;

src/elements/IconDisplay.svelte

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
align-items: center;
1212
border: none;
1313
margin: 0;
14+
font-size: inherit;
1415
background: inherit;
1516
padding: 0;
1617
width: 18em;
@@ -26,6 +27,7 @@
2627
span {
2728
margin-left: 0.66em;
2829
font-weight: bold;
30+
font-size: inherit;
2931
opacity: 0.7;
3032
text-align: left;
3133
}

src/elements/Spinner.svelte

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
}
88
.bn-onboard-loading div {
99
box-sizing: border-box;
10+
font-size: inherit;
1011
display: block;
1112
position: absolute;
1213
width: 2em;

src/modules/select/index.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ import portis from "./wallets/portis"
77
import fortmatic from "./wallets/fortmatic"
88
import authereum from "./wallets/authereum"
99
import squarelink from "./wallets/squarelink"
10+
import opera from "./wallets/opera"
11+
import operaTouch from "./wallets/opera-touch"
1012

1113
import { validateSelectDefaultsOptions } from "../../validation"
1214
import { SelectDefaultsOptions, WalletSelectModule } from "../../interfaces"
@@ -24,8 +26,8 @@ function defaults(options: SelectDefaultsOptions): WalletSelectModule {
2426
walletConnectInit
2527
} = options
2628

27-
const desktopModules = [metamask(), dapper()]
28-
const mobileModules = [coinbase(), trust()]
29+
const desktopModules = [metamask(), dapper(), opera()]
30+
const mobileModules = [coinbase(), trust(), operaTouch()]
2931

3032
if (portisInit) {
3133
desktopModules.push(portis({ ...portisInit, networkId }))
@@ -76,5 +78,7 @@ export default {
7678
portis,
7779
fortmatic,
7880
authereum,
79-
squarelink
81+
squarelink,
82+
opera,
83+
operaTouch
8084
}
Loading

0 commit comments

Comments
 (0)