Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[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

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions packages/core/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -858,9 +858,11 @@ 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
--onboard-wallet-button-box-shadow-hover
--onboard-wallet-app-icon-border-color

/* CUSTOMIZE THE SHARED MODAL */
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
8 changes: 8 additions & 0 deletions packages/core/src/views/connect/WalletButton.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -53,6 +57,10 @@
);
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));
}
</style>

<button
Expand Down
4 changes: 2 additions & 2 deletions packages/react/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down Expand Up @@ -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"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/vue/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down Expand Up @@ -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": {
Expand Down
19 changes: 19 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down