Skip to content

Commit

Permalink
Merge pull request #12736 from mDibyo/types-2.0
Browse files Browse the repository at this point in the history
Add xmlns and other attributes to SVGAttributes
  • Loading branch information
johnnyreilly committed Nov 17, 2016
2 parents ff368e4 + 7838a9c commit ae49f93
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
6 changes: 6 additions & 0 deletions react/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2191,6 +2191,7 @@ declare namespace React {
x1?: number | string;
x2?: number | string;
x?: number | string;
xChannelSelector?: string;
xlinkActuate?: string;
xlinkArcrole?: string;
xlinkHref?: string;
Expand All @@ -2200,10 +2201,15 @@ declare namespace React {
xlinkType?: string;
xmlBase?: string;
xmlLang?: string;
xmlns?: string;
xmlnsXlink?: string;
xmlSpace?: string;
y1?: number | string;
y2?: number | string;
y?: number | string;
yChannelSelector?: string;
z?: number | string;
zoomAndPan?: string;
}

//
Expand Down
5 changes: 4 additions & 1 deletion react/react-tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,10 @@ React.DOM.div(htmlAttr);
React.DOM.span(htmlAttr);
React.DOM.input(htmlAttr);

React.DOM.svg({ viewBox: "0 0 48 48" },
React.DOM.svg({
viewBox: "0 0 48 48",
xmlns: "http://www.w3.org/2000/svg"
},
React.DOM.rect({
x: 22,
y: 10,
Expand Down

0 comments on commit ae49f93

Please sign in to comment.