tiny-pilot / tinypilot

Use your Raspberry Pi as a browser-based KVM.
https://tinypilotkvm.com
MIT License
2.89k stars 244 forks source link

Replace custom dialog element with native one #1754

Closed jotaen4tinypilot closed 3 months ago

jotaen4tinypilot commented 3 months ago

Resolves https://github.com/tiny-pilot/tinypilot/issues/1699.

This PR replaces our home-brewed dialog implementation with the native <dialog> element.

Some notes on the branch:

Some learnings about <dialog> in general:

(This PR was a draft initially.)

Review on CodeApprove

mtlynch commented 3 months ago

Yeah, this is looking promising to me. I like replacing home-rolled stuff for standardized functionality the browser is implementing for us already. It's less code that we have to own and lower probability that we've missed a corner case, especially in places where we don't have a lot of experience like a11y.

jotaen4tinypilot commented 3 months ago
Automated comment from CodeApprove ➜

⏳ @jdeanwallace please review this Pull Request

jotaen4tinypilot commented 3 months ago

(Updated the PR description.)