Skip to content

Commit

Permalink
fix: Add data-* to svg attributes (#9036)
Browse files Browse the repository at this point in the history
* Add data-* to svg attributes

* Create twelve-suits-drive.md
  • Loading branch information
paoloricciuti authored Jul 24, 2023
1 parent 5cd4f77 commit a71f359
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/twelve-suits-drive.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"svelte": patch
---

fix: Add data-* to svg attributes
3 changes: 3 additions & 0 deletions packages/svelte/elements.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1451,6 +1451,9 @@ export interface SVGAttributes<T extends EventTarget> extends AriaAttributes, DO
yChannelSelector?: string | undefined | null;
z?: number | string | undefined | null;
zoomAndPan?: string | undefined | null;

// allow any data- attribute
[key: `data-${string}`]: any;
}

export interface HTMLWebViewAttributes extends HTMLAttributes<HTMLElement> {
Expand Down

0 comments on commit a71f359

Please sign in to comment.