diff --git a/examples/react/src/App.tsx b/examples/react/src/App.tsx index 5e81598b..6347c08e 100644 --- a/examples/react/src/App.tsx +++ b/examples/react/src/App.tsx @@ -55,7 +55,7 @@ function App() { const kitConfig: KitConfig = { projectAccessKey: 'iK0DPkHRt0IFo8o4M3fZIIOAAAAAAAAAA', - defaultTheme: THEMES.dark, + defaultTheme: 'dark', signIn: { projectName: 'Skyweaver', // logoUrl: 'sw-logo-white.svg', diff --git a/packages/wallet/src/shared/WalletHeader/components/AccountInformation.tsx b/packages/wallet/src/shared/WalletHeader/components/AccountInformation.tsx index c1cda98e..8f855b2a 100644 --- a/packages/wallet/src/shared/WalletHeader/components/AccountInformation.tsx +++ b/packages/wallet/src/shared/WalletHeader/components/AccountInformation.tsx @@ -39,7 +39,7 @@ export const AccountInformation = forwardRef(({ {formatAddress(address || '')} - + diff --git a/packages/wallet/src/shared/WalletHeader/components/WalletDropdownContent.tsx b/packages/wallet/src/shared/WalletHeader/components/WalletDropdownContent.tsx index c40b817e..f18f0728 100644 --- a/packages/wallet/src/shared/WalletHeader/components/WalletDropdownContent.tsx +++ b/packages/wallet/src/shared/WalletHeader/components/WalletDropdownContent.tsx @@ -63,6 +63,17 @@ export const WalletDropdownContent = forwardRef(( disconnect() } + const getDropdownBackgroundColor = () => { + switch(theme) { + case 'dark': + return 'rgba(38, 38, 38, 0.85)' + case 'light': + return 'rgba(217, 217, 217, 0.85)' + default: + return vars.colors.transparent + } + } + return ( @@ -109,6 +120,7 @@ export const WalletDropdownContent = forwardRef((