Skip to content

Commit c25aa6e

Browse files
authored
[core-v2.8.3-alpha.1, react-v2.3.3-alpha.1, vue-v2.2.3-alpha.1] : Update - Add variable for wallet button text color & box shadow on hover (#1263)
* Add variable for wallet button text color on hover * Add botton box-shadow on hover css var
1 parent ff24800 commit c25aa6e

File tree

6 files changed

+34
-5
lines changed

6 files changed

+34
-5
lines changed

packages/core/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -858,9 +858,11 @@ The Onboard styles can customized via [CSS variables](https://developer.mozilla.
858858
--onboard-wallet-button-background
859859
--onboard-wallet-button-background-hover
860860
--onboard-wallet-button-color
861+
--onboard-wallet-button-color-hover
861862
--onboard-wallet-button-border-color
862863
--onboard-wallet-button-border-radius
863864
--onboard-wallet-button-box-shadow
865+
--onboard-wallet-button-box-shadow-hover
864866
--onboard-wallet-app-icon-border-color
865867

866868
/* CUSTOMIZE THE SHARED MODAL */

packages/core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@web3-onboard/core",
3-
"version": "2.8.2",
3+
"version": "2.8.3-alpha.1",
44
"description": "Web3-Onboard makes it simple to connect Ethereum hardware and software wallets to your dapp. Features standardized spec compliant web3 providers for all supported wallets, framework agnostic modern javascript UI with code splitting, CSS customization, multi-chain and multi-account support, reactive wallet state subscriptions and real-time transaction state change notifications.",
55
"keywords": [
66
"Ethereum",

packages/core/src/views/connect/WalletButton.svelte

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@
3333
--onboard-wallet-button-background-hover,
3434
var(--onboard-primary-100, var(--primary-100))
3535
);
36+
color: var(
37+
--onboard-wallet-button-color-hover,
38+
var(--onboard-gray-700, var(--gray-700))
39+
);
3640
}
3741
3842
button.connected {
@@ -53,6 +57,10 @@
5357
);
5458
box-shadow: var(--onboard-wallet-button-box-shadow, var(--box-shadow-0));
5559
}
60+
61+
button.wallet-button-styling:hover {
62+
box-shadow: var(--onboard-wallet-button-box-shadow-hover, var(--box-shadow-0));
63+
}
5664
</style>
5765

5866
<button

packages/react/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@web3-onboard/react",
3-
"version": "2.3.2",
3+
"version": "2.3.3-alpha.1",
44
"description": "A collection of React hooks for integrating Web3-Onboard in to React and Next.js projects. Web3-Onboard makes it simple to connect Ethereum hardware and software wallets to your dapp. Features standardised spec compliant web3 providers for all supported wallets, modern javascript UI with code splitting, CSS customization, multi-chain and multi-account support, reactive wallet state subscriptions and real-time transaction state change notifications.",
55
"keywords": [
66
"Ethereum",
@@ -62,7 +62,7 @@
6262
"typescript": "^4.5.5"
6363
},
6464
"dependencies": {
65-
"@web3-onboard/core": "^2.8.2",
65+
"@web3-onboard/core": "^2.8.3-alpha.1",
6666
"@web3-onboard/common": "^2.2.2",
6767
"use-sync-external-store": "1.0.0"
6868
},

packages/vue/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@web3-onboard/vue",
3-
"version": "2.2.2",
3+
"version": "2.2.3-alpha.1",
44
"description": "A collection of Vue Composables for integrating Web3-Onboard in to a Vue or Nuxt project. Web3-Onboard makes it simple to connect Ethereum hardware and software wallets to your dapp. Features standardised spec compliant web3 providers for all supported wallets, modern javascript UI with code splitting, CSS customization, multi-chain and multi-account support, reactive wallet state subscriptions and real-time transaction state change notifications.",
55
"keywords": [
66
"Ethereum",
@@ -63,7 +63,7 @@
6363
"@vueuse/core": "^8.4.2",
6464
"@vueuse/rxjs": "^8.2.0",
6565
"@web3-onboard/common": "^2.2.2",
66-
"@web3-onboard/core": "^2.8.2",
66+
"@web3-onboard/core": "^2.8.3-alpha.1",
6767
"vue-demi": "^0.12.4"
6868
},
6969
"peerDependencies": {

yarn.lock

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2953,6 +2953,25 @@
29532953
dependencies:
29542954
"@walletconnect/window-getters" "^1.0.0"
29552955

2956+
"@web3-onboard/core@^2.8.2":
2957+
version "2.8.2"
2958+
resolved "https://registry.yarnpkg.com/@web3-onboard/core/-/core-2.8.2.tgz#70d1730384a3e028bbe07769086361db5c631d78"
2959+
integrity sha512-AE2xQVKsmjtvW7lI7xFFdfAtoLxmZRa9qfCv5MtHRDY9Ojqkj06dLgteJmB4FBFZnh79iXoKbIj7N+vRpvjHIw==
2960+
dependencies:
2961+
"@web3-onboard/common" "^2.2.2"
2962+
bignumber.js "^9.0.0"
2963+
bnc-sdk "^4.4.1"
2964+
bowser "^2.11.0"
2965+
ethers "5.5.3"
2966+
eventemitter3 "^4.0.7"
2967+
joi "17.6.0"
2968+
lodash.merge "^4.6.2"
2969+
lodash.partition "^4.6.0"
2970+
nanoid "^4.0.0"
2971+
rxjs "^7.5.2"
2972+
svelte "^3.49.0"
2973+
svelte-i18n "^3.3.13"
2974+
29562975
"@web3auth/base-plugin@^1.0.1":
29572976
version "1.0.1"
29582977
resolved "https://registry.yarnpkg.com/@web3auth/base-plugin/-/base-plugin-1.0.1.tgz#1e2a87acf745299fdff6f92e6c46ee9bc38aa670"

0 commit comments

Comments
 (0)