Skip to content

Commit

Permalink
πŸ’„ Add reset for dialog element
Browse files Browse the repository at this point in the history
  • Loading branch information
chuckcarpenter committed Dec 6, 2024
1 parent 7d71561 commit 70f26a3
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions shepherd.js/src/components/shepherd-element.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,18 @@
</dialog>

<style global>
/* <dialog> reset needed for positioning */
dialog.shepherd-element {
padding: 0;
border: none;
margin: 0;
background: none;
position: static;
width: auto;
height: auto;
color: inherit;
font: inherit;
}
.shepherd-element {
background: #fff;
border-radius: 5px;
Expand Down

0 comments on commit 70f26a3

Please sign in to comment.