openui / open-ui

Maintain an open standard for UI and promote its adherence and adoption.
https://open-ui.org
Other
3.35k stars 177 forks source link

Improve DX of element reference attributes by allowing relative references instead of just ids #1014

Open LeaVerou opened 2 months ago

LeaVerou commented 2 months ago

I posted this proposal/exploration in https://github.com/whatwg/html/ 3 weeks ago but it occurred to me it would actually be an excellent fit here too.

There are several new elements also adopting this referencing scheme such as popovers, invokers, the new anchor attribute and so on, so I think it's time to address this longstanding author pain point.