- Connect to -
+Connect to
{dappName}
-
+
-
{#each modalWallets as wallet}
diff --git a/src/main.ts b/src/main.ts index b83eb98..e966625 100644 --- a/src/main.ts +++ b/src/main.ts @@ -14,6 +14,8 @@ import { setStarknetLastConnectedWallet, } from "./helpers/lastConnected" +import css from "./theme.css?inline" + export const connect = async ({ modalMode = "canAsk", storeVersion = getStoreVersionFromBrowser(), @@ -67,9 +69,15 @@ export const connect = async ({ storeVersion, }) + const element = document.createElement("div") + document.body.appendChild(element) + const target = element.attachShadow({ mode: "open" }) + + target.innerHTML = `` + return new Promise((resolve) => { const modal = new Modal({ - target: document.body, + target, props: { dappName, callback: async (value: StarknetWindowObject | null) => { diff --git a/src/modal/ConnectorButton.svelte b/src/modal/ConnectorButton.svelte index 518cafc..121c9f2 100644 --- a/src/modal/ConnectorButton.svelte +++ b/src/modal/ConnectorButton.svelte @@ -14,15 +14,15 @@ href={wallet.download} target="_blank" rel="noopener noreferrer" - class={`starknetkit-rounded-md focus:starknetkit-outline-none focus:starknetkit-ring-2 - focus:starknetkit-ring-neutral-200 dark:focus:starknetkit-ring-neutral-700 starknetkit-transition-colors`} + class={`rounded-md focus:outline-none focus:ring-2 + focus:ring-neutral-200 dark:focus:ring-neutral-700 transition-colors`} >
+
Install {wallet.name}
- ++
{wallet.title ?? wallet.name}
-+
{wallet.subtitle ?? ""}