Email or username:

Password:

Forgot your password?
Top-level
James Scholes

@simon Just noting that these are nowhere near as accessible as the built-in, non-async versions, particularly with a screen reader. A totally fixable problem, just wanted to make you aware.

5 comments
Stuart Langridge

@jscholes @simon ah, I came to point out <dialog>, indeed :) this is entirely what it's for, and it's designed well at it

Simon Willison

@sil @jscholes I just shipped a new version that uses dialog and I think it's a lot better, but would love to hear any accessibility feedback on it tools.simonwillison.net/prompt

Thomas Steiner :chrome:

@simon @sil @jscholes I'd engineer it by creating a set of `<template>`s for all dialog types (maybe lazily on demand even) and then `clone()` them whenever I need them. Also, I'd make them completely barebones when it comes to design, so they can fit in wherever.

Thomas Steiner :chrome:

@simon @sil @jscholes Ah, and I see you have an Issue open for this already, but you really want to allow users to only `import` the dialog type(s) they need. Given what you have, an LLM should be able to get you there.

Go Up