Skip to content

Commit

Permalink
Merge pull request #52 from argentlabs/fix/starknetkit-modal-customiz…
Browse files Browse the repository at this point in the history
…ation

fix: add part attribute for starknetkit modal for css override
  • Loading branch information
bluecco authored Dec 29, 2023
2 parents 737f3af + 495184b commit 4730511
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export const connect = async ({
})

const getTarget = (): ShadowRoot => {
const modalId = "starknetkit-modal"
const modalId = "starknetkit-modal-container"
const existingElement = document.getElementById(modalId)

if (existingElement) {
Expand Down
1 change: 1 addition & 0 deletions src/modal/Modal.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@
{#if !isInAppBrowser && modalWallets.length > 1}
<!-- svelte-ignore a11y-no-static-element-interactions -->
<div
part="starknetkit-modal"
class={`modal-font backdrop-blur-sm fixed inset-0 flex items-center
justify-center bg-black/25 z-[9999] ${darkModeControlClass}`}
on:click={() => cb(null)}
Expand Down

0 comments on commit 4730511

Please sign in to comment.