Skip to content

Commit c1c1fb2

Browse files
fixing colors for links and buttons
1 parent 7359dc0 commit c1c1fb2

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

packages/react-renderer-demo/src/components/common/doc-link.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ export const NextLinkComposed = React.forwardRef(function NextLinkComposed(props
1616
<NextLink
1717
style={{
1818
textDecoration: 'none',
19+
color: 'inherit'
1920
}}
2021
href={to}
2122
prefetch={prefetch}
@@ -94,7 +95,7 @@ const DocLink = React.forwardRef(function Link(props, ref) {
9495
return <NextLinkComposed className={className} ref={ref} {...nextjsProps} {...other} />;
9596
}
9697

97-
return <MuiLink sx={{ textDecoration: 'none' }} component={NextLinkComposed} className={className} ref={ref} {...nextjsProps} {...other} />;
98+
return <MuiLink component={NextLinkComposed} className={className} ref={ref} {...nextjsProps} {...other} />;
9899
});
99100

100101
DocLink.propTypes = {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ const ComponentExample = ({ variants, schema, activeMapper, component, schemaVar
251251
onClick={() => push(`${pathname}?mapper=${mapper}${activeSchema ? `&schema=${activeSchema}` : ''}`)}
252252
className={clsx(classes.tab, { active: activeMapper === mapper })}
253253
label={
254-
<DocLink href={`${pathname}?mapper=${mapper}${activeSchema ? `&schema=${activeSchema}` : ''}`}>
254+
<DocLink style={{ textDecoration: 'none', color: 'inherit' }} href={`${pathname}?mapper=${mapper}${activeSchema ? `&schema=${activeSchema}` : ''}`}>
255255
<a href={`${pathname}?mapper=${mapper}${activeSchema ? `&schema=${activeSchema}` : ''}`} className={classes.tabLink}>
256256
{title}
257257
</a>

0 commit comments

Comments
 (0)