Skip to content

Commit

Permalink
fix: #1995 invalid "for" property in examples (#1996)
Browse files Browse the repository at this point in the history
  • Loading branch information
fabianmossberg authored Jun 13, 2023
1 parent 498f6af commit e8031e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/docs/src/routes/components/modal/+page.svelte.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ data="{[
<button class="$$btn" onclick="my_modal_3.showModal()">open modal</button>
<dialog id="my_modal_3" class="$$modal">
<form method="dialog" class="$$modal-box">
<button for="my-modal-3" class="$$btn $$btn-sm $$btn-circle $$btn-ghost absolute right-2 top-2">✕</button>
<button class="$$btn $$btn-sm $$btn-circle $$btn-ghost absolute right-2 top-2">✕</button>
<h3 class="font-bold text-lg">Hello!</h3>
<p class="py-4">Press ESC key or click on ✕ button to close</p>
</form>
Expand All @@ -149,7 +149,7 @@ data="{[
<button className="$$btn" onClick={()=>window.my_modal_3.showModal()}>open modal</button>
<dialog id="my_modal_3" className="$$modal">
<form method="dialog" className="$$modal-box">
<button for="my-modal-3" className="$$btn $$btn-sm $$btn-circle $$btn-ghost absolute right-2 top-2">✕</button>
<button className="$$btn $$btn-sm $$btn-circle $$btn-ghost absolute right-2 top-2">✕</button>
<h3 className="font-bold text-lg">Hello!</h3>
<p className="py-4">Press ESC key or click on ✕ button to close</p>
</form>
Expand Down

0 comments on commit e8031e6

Please sign in to comment.