Thanks Hernan for the feedback.
As I said to Jason, you should absolutely be putting a semantic tag like <form> or <section> inside the dialog component to give it semantic value. Support for the <dialog> is growing, and I hope that as it grows in use + popularity we see it growing with features like - non-JS triggering, focus-trapping, screen-reader compatibility etc.