Skip to content

Commit

Permalink
fix: remove the invalid "for" property from the close button (#1923)
Browse files Browse the repository at this point in the history
It has probably been a typo, but "for" property is not applicable to the button element.
  • Loading branch information
Alex Tocar authored Jun 5, 2023
1 parent 8516d02 commit ed513bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/docs/src/routes/components/modal/+page.svelte.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,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 Down

0 comments on commit ed513bd

Please sign in to comment.