Skip to content

Commit 821e916

Browse files
authored
Merge pull request #1179 from rvsia/fixComponentExampleStyles
Fix styling of component example page
2 parents d762d53 + f94b11e commit 821e916

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

packages/react-renderer-demo/src/components/component-example.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ const Root = styled('div')(({ theme }) => ({
9595

9696
[`& .${classes.indicator}`]: {
9797
width: 4,
98+
backgroundColor: '#f50057',
9899
},
99100

100101
[`& .${classes.tabLink}`]: {
@@ -116,6 +117,7 @@ const Root = styled('div')(({ theme }) => ({
116117
top: 'calc(50% - 40px)',
117118
left: 'calc(50% - 40px)',
118119
zIndex: -1,
120+
color: '#f50057',
119121
},
120122

121123
[`& .${classes.editorContainer}`]: {
@@ -341,7 +343,7 @@ const ComponentExample = ({ variants, schema, activeMapper, component, schemaVar
341343
</Tabs>
342344
<div id="code-target" className="pepa"></div>
343345
<div className={classes.spinner}>
344-
<CircularProgress color="secondary" size={80} />
346+
<CircularProgress color="inherit" size={80} />
345347
</div>
346348
</div>
347349
</Box>
@@ -353,6 +355,8 @@ const ComponentExample = ({ variants, schema, activeMapper, component, schemaVar
353355
target="_blank"
354356
href={originalComponentLink(activeMapper, activeComponent)}
355357
startIcon={<LinkIcon />}
358+
color="inherit"
359+
sx={{ borderColor: '#c6c6c6' }}
356360
>
357361
Original documentation
358362
</Button>
@@ -362,6 +366,8 @@ const ComponentExample = ({ variants, schema, activeMapper, component, schemaVar
362366
target="_blank"
363367
href={`https://github.com/data-driven-forms/react-forms/blob/master/packages/${activeMapper}-component-mapper/src/${activeComponent}/${activeComponent}.js`}
364368
startIcon={<GhIcon />}
369+
color="inherit"
370+
sx={{ borderColor: '#c6c6c6' }}
365371
>
366372
DDF implementation
367373
</Button>

0 commit comments

Comments
 (0)