From 77571cef7619b17748862695e80a5d9ea12c10e4 Mon Sep 17 00:00:00 2001 From: Adam Carpenter Date: Mon, 12 Sep 2022 09:26:16 -0600 Subject: [PATCH 1/4] Add variable for wallet button text color on hover --- packages/core/README.md | 1 + packages/core/package.json | 2 +- packages/core/src/views/connect/WalletButton.svelte | 4 ++++ packages/react/package.json | 4 ++-- packages/vue/package.json | 4 ++-- 5 files changed, 10 insertions(+), 5 deletions(-) diff --git a/packages/core/README.md b/packages/core/README.md index 34b5e98d1..0805b7b5f 100644 --- a/packages/core/README.md +++ b/packages/core/README.md @@ -858,6 +858,7 @@ The Onboard styles can customized via [CSS variables](https://developer.mozilla. --onboard-wallet-button-background --onboard-wallet-button-background-hover --onboard-wallet-button-color + --onboard-wallet-button-color-hover --onboard-wallet-button-border-color --onboard-wallet-button-border-radius --onboard-wallet-button-box-shadow diff --git a/packages/core/package.json b/packages/core/package.json index 9bc043bd7..395c5e3b7 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "@web3-onboard/core", - "version": "2.8.2", + "version": "2.8.3-alpha.1", "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.", "keywords": [ "Ethereum", diff --git a/packages/core/src/views/connect/WalletButton.svelte b/packages/core/src/views/connect/WalletButton.svelte index 876aca599..fa2f036f8 100644 --- a/packages/core/src/views/connect/WalletButton.svelte +++ b/packages/core/src/views/connect/WalletButton.svelte @@ -33,6 +33,10 @@ --onboard-wallet-button-background-hover, var(--onboard-primary-100, var(--primary-100)) ); + color: var( + --onboard-wallet-button-color-hover, + var(--onboard-gray-700, var(--gray-700)) + ); } button.connected { diff --git a/packages/react/package.json b/packages/react/package.json index 28a2f107d..5ce6e1ca1 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -1,6 +1,6 @@ { "name": "@web3-onboard/react", - "version": "2.3.2", + "version": "2.3.3-alpha.1", "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.", "keywords": [ "Ethereum", @@ -62,7 +62,7 @@ "typescript": "^4.5.5" }, "dependencies": { - "@web3-onboard/core": "^2.8.2", + "@web3-onboard/core": "^2.8.3-alpha.1", "@web3-onboard/common": "^2.2.2", "use-sync-external-store": "1.0.0" }, diff --git a/packages/vue/package.json b/packages/vue/package.json index 5ca80b3c7..bd35f54dd 100644 --- a/packages/vue/package.json +++ b/packages/vue/package.json @@ -1,6 +1,6 @@ { "name": "@web3-onboard/vue", - "version": "2.2.2", + "version": "2.2.3-alpha.1", "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.", "keywords": [ "Ethereum", @@ -63,7 +63,7 @@ "@vueuse/core": "^8.4.2", "@vueuse/rxjs": "^8.2.0", "@web3-onboard/common": "^2.2.2", - "@web3-onboard/core": "^2.8.2", + "@web3-onboard/core": "^2.8.3-alpha.1", "vue-demi": "^0.12.4" }, "peerDependencies": { From 0ba55d608b6b3fb05a535afb2c4b8e79586b01df Mon Sep 17 00:00:00 2001 From: Adam Carpenter Date: Mon, 12 Sep 2022 09:32:18 -0600 Subject: [PATCH 2/4] Merge dev --- yarn.lock | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/yarn.lock b/yarn.lock index 229e204c5..0c89095c7 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2953,6 +2953,25 @@ dependencies: "@walletconnect/window-getters" "^1.0.0" +"@web3-onboard/core@^2.8.2": + version "2.8.2" + resolved "https://registry.yarnpkg.com/@web3-onboard/core/-/core-2.8.2.tgz#70d1730384a3e028bbe07769086361db5c631d78" + integrity sha512-AE2xQVKsmjtvW7lI7xFFdfAtoLxmZRa9qfCv5MtHRDY9Ojqkj06dLgteJmB4FBFZnh79iXoKbIj7N+vRpvjHIw== + dependencies: + "@web3-onboard/common" "^2.2.2" + bignumber.js "^9.0.0" + bnc-sdk "^4.4.1" + bowser "^2.11.0" + ethers "5.5.3" + eventemitter3 "^4.0.7" + joi "17.6.0" + lodash.merge "^4.6.2" + lodash.partition "^4.6.0" + nanoid "^4.0.0" + rxjs "^7.5.2" + svelte "^3.49.0" + svelte-i18n "^3.3.13" + "@web3auth/base-plugin@^1.0.1": version "1.0.1" resolved "https://registry.yarnpkg.com/@web3auth/base-plugin/-/base-plugin-1.0.1.tgz#1e2a87acf745299fdff6f92e6c46ee9bc38aa670" From 488fe188c5837450443dea6894768b86fecc5631 Mon Sep 17 00:00:00 2001 From: Adam Carpenter Date: Mon, 12 Sep 2022 09:54:39 -0600 Subject: [PATCH 3/4] Add botton box-shadow on haver css var --- packages/core/src/views/connect/WalletButton.svelte | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/core/src/views/connect/WalletButton.svelte b/packages/core/src/views/connect/WalletButton.svelte index fa2f036f8..998cf7bdd 100644 --- a/packages/core/src/views/connect/WalletButton.svelte +++ b/packages/core/src/views/connect/WalletButton.svelte @@ -57,6 +57,9 @@ ); box-shadow: var(--onboard-wallet-button-box-shadow, var(--box-shadow-0)); } + button.wallet-button-styling:hover { + box-shadow: var(--onboard-wallet-button-box-shadow-hover, var(--box-shadow-0)); + }