Skip to content

Commit

Permalink
fix: add part attribute for starknetkit modal for css override
Browse files Browse the repository at this point in the history
  • Loading branch information
bluecco committed Dec 29, 2023
1 parent 737f3af commit 495184b
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 495184b

Please sign in to comment.