From 62eee0e4cd7a5b7bc4a0f11c53bd9b63b99f25e2 Mon Sep 17 00:00:00 2001 From: Francisco Date: Tue, 4 Jul 2023 10:51:12 +0200 Subject: [PATCH] style wc modal --- packages/bridge-ui/src/wagmi/client.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/packages/bridge-ui/src/wagmi/client.ts b/packages/bridge-ui/src/wagmi/client.ts index 3cd453511d4..c6599dd490e 100644 --- a/packages/bridge-ui/src/wagmi/client.ts +++ b/packages/bridge-ui/src/wagmi/client.ts @@ -75,6 +75,19 @@ export const client = createClient({ options: { projectId: WALLETCONNECT_PROJECT_ID, showQrModal: true, + qrModalOptions: { + themeVariables: { + // DaisyUI modal has a z-index of 999 by default + // WalletConnect modal has a z-index of 89 by default + // Let's increase wc to beat daisyui's modal + '--wcm-z-index': '9999', + '--wcm-background-color': '#E81899', + + // @ts-ignore + // '--wcm-color-fg-1': '#E81899', + '--wcm-accent-color': '#E81899', + } + } }, }), new CoinbaseWalletConnector({