Skip to content

Commit

Permalink
Add namespace props to svg element
Browse files Browse the repository at this point in the history
  • Loading branch information
megamaddu committed Aug 2, 2019
1 parent 809ccc8 commit 591a3ad
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
15 changes: 14 additions & 1 deletion codegen/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,20 @@ Object.keys(svgProps).forEach(elName => {
// The attribute list for <svg> in react-html-attributes
// is wrong (it contains the union of the attributes of all
// svg elements)
htmlProps['svg'] = camelCaseSvgProps['svg'];
htmlProps['svg'] = camelCaseSvgProps['svg'].concat([
"xlinkActuate",
"xlinkArcrole",
"xlinkHref",
"xlinkRole",
"xlinkShow",
"xlinkTitle",
"xlinkType",
"xmlBase",
"xmlLang",
"xmlSpace",
"xmlns",
"xmlnsXlink"
]);

const printRecord = (e, elProps) =>
elProps.length
Expand Down
12 changes: 12 additions & 0 deletions src/React/Basic/DOM/Generated.purs
Original file line number Diff line number Diff line change
Expand Up @@ -10826,6 +10826,18 @@ type Props_svg =
, wordSpacing :: String
, writingMode :: String
, x :: String
, xlinkActuate :: String
, xlinkArcrole :: String
, xlinkHref :: String
, xlinkRole :: String
, xlinkShow :: String
, xlinkTitle :: String
, xlinkType :: String
, xmlBase :: String
, xmlLang :: String
, xmlSpace :: String
, xmlns :: String
, xmlnsXlink :: String
, y :: String
, zoomAndPan :: String
)
Expand Down

0 comments on commit 591a3ad

Please sign in to comment.