Two cool improvements are coming to <dialog> soon ™️. - button command/commandfor attributes to open dialogs without JS. - closedby attribute to enable light dismiss or disable close on esc (etc)
36 reposts165 likes
Two cool improvements are coming to <dialog> soon ™️. - button command/commandfor attributes to open dialogs without JS. - closedby attribute to enable light dismiss or disable close on esc (etc)
36 reposts165 likes
See codepen.io/lukewarlow/p... in chrome canary with experimental web features enabled.
@joshwcomeau.com Luke would make a great addition to your web folks starter pack, I think.
I believe @keithamus.social recently landed the spec change for dialogs to get a toggle event, matching popovers and details elements. That event would be fired when the command button is activated.