sod
sod

@heyloura Or, like this, if you style the summary element to look like a button and the form element to look like a dialog box.

<details>
<summary>Delete</summary>
<form action="/delete-something">
Are you sure?
<button>Yes, delete something</button>
</form>
</details>

|
Embed
Progress spinner
In reply to
heyloura
heyloura

@sod I accidentally deleted my replies to this conversation while testing things out 😆 But I think the details tag did the trick (the trash can is the summary and it shows/hides the confirm button).

|
Embed
Progress spinner