From 24919fc01328c3196c46df5ec4f42d90eed2732b Mon Sep 17 00:00:00 2001 From: Sven Date: Wed, 3 Jan 2024 10:27:54 +0100 Subject: [PATCH 1/2] fix styling on light mode --- packages/ui/src/composites/wui-list-accordion/styles.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/ui/src/composites/wui-list-accordion/styles.ts b/packages/ui/src/composites/wui-list-accordion/styles.ts index 0a41e593e7..73bd7a4915 100644 --- a/packages/ui/src/composites/wui-list-accordion/styles.ts +++ b/packages/ui/src/composites/wui-list-accordion/styles.ts @@ -25,8 +25,9 @@ export default css` left: 0; right: 0; bottom: 0; - background: linear-gradient(to top, rgb(42, 42, 42), transparent); - border-radius: var(--wui-border-radius-xs); + background: linear-gradient(to top, var(--wui-color-bg-200), transparent); + border-bottom-left-radius: var(--wui-border-radius-xs); + border-bottom-right-radius: var(--wui-border-radius-xs); } .heightContent { From e038dd98a4edd652dabb5bf54650b33af1e70478 Mon Sep 17 00:00:00 2001 From: Sven Date: Wed, 3 Jan 2024 14:50:30 +0100 Subject: [PATCH 2/2] add isUnlocked check --- packages/wagmi/src/connectors/EIP6963Connector.ts | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/packages/wagmi/src/connectors/EIP6963Connector.ts b/packages/wagmi/src/connectors/EIP6963Connector.ts index 8cae8f406c..7e34d35844 100644 --- a/packages/wagmi/src/connectors/EIP6963Connector.ts +++ b/packages/wagmi/src/connectors/EIP6963Connector.ts @@ -74,10 +74,18 @@ export class EIP6963Connector extends InjectedConnector { if (!eip6963Wallet || connectedEIP6963Rdns !== eip6963Wallet.info.rdns) { return true } + } + + if ( + (eip6963Wallet && eip6963Wallet.provider._state?.isUnlocked === undefined) || + (eip6963Wallet && eip6963Wallet.provider._state?.isUnlocked) + ) { this.#eip6963Wallet = eip6963Wallet + + return super.isAuthorized() } - return super.isAuthorized() + return false } public override async getProvider() {