Skip to content

Commit 069b134

Browse files
fix(docdemo, coloraccordion): correctly format SVG/CSS props (#2941)
1 parent 9675a8a commit 069b134

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

src/components/global/DocDemo/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ const DocDemo = (props) => {
7979
<svg className="docs-demo-device__ios-notch" viewBox="0 0 219 31">
8080
<path
8181
d="M0 1V0h219v1a5 5 0 0 0-5 5v3c0 12.15-9.85 22-22 22H27C14.85 31 5 21.15 5 9V6a5 5 0 0 0-5-5z"
82-
fill-rule="evenodd"
82+
fillRule="evenodd"
8383
/>
8484
</svg>
8585
<iframe

src/components/page/theming/ColorAccordion/index.tsx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export default function ColorAccordion({ ...props }) {
4545
})}
4646
style={
4747
{
48-
'background-color': `var(--ion-color-${color})`,
48+
'backgroundColor': `var(--ion-color-${color})`,
4949
color: `var(--ion-color-${color}-contrast)`,
5050
} as any
5151
}
@@ -59,17 +59,17 @@ export default function ColorAccordion({ ...props }) {
5959
<g
6060
id="Welcome"
6161
stroke="none"
62-
stroke-width="1"
62+
strokeWidth="1"
6363
fill="none"
64-
fill-rule="evenodd"
65-
stroke-linecap="round"
66-
stroke-linejoin="round"
64+
fillRule="evenodd"
65+
strokeLinecap="round"
66+
strokeLinejoin="round"
6767
>
6868
<g
6969
id="Desktop-HD"
7070
transform="translate(-1025.000000, -335.000000)"
7171
stroke="currentColor"
72-
stroke-width="2"
72+
strokeWidth="2"
7373
>
7474
<polyline
7575
id="arrow"
@@ -85,7 +85,7 @@ export default function ColorAccordion({ ...props }) {
8585
className={styles.colorSubmenuItem}
8686
style={
8787
{
88-
'background-color': `var(--ion-color-${color}-shade)`,
88+
'backgroundColor': `var(--ion-color-${color}-shade)`,
8989
color: `var(--ion-color-${color}-contrast)`,
9090
} as any
9191
}
@@ -99,7 +99,7 @@ export default function ColorAccordion({ ...props }) {
9999
className={styles.colorSubmenuItem}
100100
style={
101101
{
102-
'background-color': `var(--ion-color-${color}-tint)`,
102+
'backgroundColor': `var(--ion-color-${color}-tint)`,
103103
color: `var(--ion-color-${color}-contrast)`,
104104
} as any
105105
}

0 commit comments

Comments
 (0)