Skip to content

Commit a3252ca

Browse files
authored
Merge pull request #1394 from AhmedMustafa2201/bugs/links-button-colors
fixing colors for links and buttons
2 parents 7359dc0 + 77789b1 commit a3252ca

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-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: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,10 @@ 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
255+
style={{ textDecoration: 'none', color: 'inherit' }}
256+
href={`${pathname}?mapper=${mapper}${activeSchema ? `&schema=${activeSchema}` : ''}`}
257+
>
255258
<a href={`${pathname}?mapper=${mapper}${activeSchema ? `&schema=${activeSchema}` : ''}`} className={classes.tabLink}>
256259
{title}
257260
</a>

0 commit comments

Comments
 (0)