diff options
author | 2024-12-13 02:40:23 -0800 | |
---|---|---|
committer | 2024-12-13 10:40:23 +0000 | |
commit | ee66a45b250703a40b34c0a45ae34aefcb14ea44 (patch) | |
tree | 4bec302645ed430967cae6b07bd58ca339059a94 | |
parent | 72f30ddbf3febbf0d60896af4073ffc596ac9eef (diff) | |
download | astro-ee66a45b250703a40b34c0a45ae34aefcb14ea44.tar.gz astro-ee66a45b250703a40b34c0a45ae34aefcb14ea44.tar.zst astro-ee66a45b250703a40b34c0a45ae34aefcb14ea44.zip |
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>
-rw-r--r-- | .changeset/neat-pumas-accept.md | 5 | ||||
-rw-r--r-- | packages/astro/astro-jsx.d.ts | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/.changeset/neat-pumas-accept.md b/.changeset/neat-pumas-accept.md new file mode 100644 index 000000000..8babf49e7 --- /dev/null +++ b/.changeset/neat-pumas-accept.md @@ -0,0 +1,5 @@ +--- +"astro": patch +--- + +Adds type support for the `closedby` attribute for `<dialog>` elements diff --git a/packages/astro/astro-jsx.d.ts b/packages/astro/astro-jsx.d.ts index ca54b991e..39cb40f61 100644 --- a/packages/astro/astro-jsx.d.ts +++ b/packages/astro/astro-jsx.d.ts @@ -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 { |