0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-16 21:46:22 -05:00

Adds closedby to dialog interface (#12728)

* Adds `closedby` to dialog interface

Standards status https://chromestatus.com/feature/5097714453577728

* Add changeset

---------

Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
This commit is contained in:
Adam Argyle 2024-12-13 02:40:23 -08:00 committed by GitHub
parent 72f30ddbf3
commit ee66a45b25
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 0 deletions

View file

@ -0,0 +1,5 @@
---
"astro": patch
---
Adds type support for the `closedby` attribute for `<dialog>` elements

View file

@ -679,6 +679,7 @@ declare namespace astroHTML.JSX {
interface DialogHTMLAttributes extends HTMLAttributes {
open?: boolean | string | undefined | null;
closedby?: 'none' | 'closerequest' | 'any' | undefined | null;
}
interface EmbedHTMLAttributes extends HTMLAttributes {