Skip to content

Commit 591a3ad

Browse files
committed
Add namespace props to svg element
1 parent 809ccc8 commit 591a3ad

File tree

2 files changed

+26
-1
lines changed

2 files changed

+26
-1
lines changed

Diff for: codegen/index.js

+14-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,20 @@ Object.keys(svgProps).forEach(elName => {
6767
// The attribute list for <svg> in react-html-attributes
6868
// is wrong (it contains the union of the attributes of all
6969
// svg elements)
70-
htmlProps['svg'] = camelCaseSvgProps['svg'];
70+
htmlProps['svg'] = camelCaseSvgProps['svg'].concat([
71+
"xlinkActuate",
72+
"xlinkArcrole",
73+
"xlinkHref",
74+
"xlinkRole",
75+
"xlinkShow",
76+
"xlinkTitle",
77+
"xlinkType",
78+
"xmlBase",
79+
"xmlLang",
80+
"xmlSpace",
81+
"xmlns",
82+
"xmlnsXlink"
83+
]);
7184

7285
const printRecord = (e, elProps) =>
7386
elProps.length

Diff for: src/React/Basic/DOM/Generated.purs

+12
Original file line numberDiff line numberDiff line change
@@ -10826,6 +10826,18 @@ type Props_svg =
1082610826
, wordSpacing :: String
1082710827
, writingMode :: String
1082810828
, x :: String
10829+
, xlinkActuate :: String
10830+
, xlinkArcrole :: String
10831+
, xlinkHref :: String
10832+
, xlinkRole :: String
10833+
, xlinkShow :: String
10834+
, xlinkTitle :: String
10835+
, xlinkType :: String
10836+
, xmlBase :: String
10837+
, xmlLang :: String
10838+
, xmlSpace :: String
10839+
, xmlns :: String
10840+
, xmlnsXlink :: String
1082910841
, y :: String
1083010842
, zoomAndPan :: String
1083110843
)

0 commit comments

Comments
 (0)