docs(nxdev): make header Docs link bold only when relevant (#8423)
This commit is contained in:
parent
7000b3782b
commit
873982fed8
@ -41,7 +41,7 @@ export default function DocumentationPage({
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<Header showSearch={true} />
|
<Header showSearch={true} isDocViewer={true} />
|
||||||
<main>
|
<main>
|
||||||
<DocViewer
|
<DocViewer
|
||||||
document={document}
|
document={document}
|
||||||
|
|||||||
@ -4,6 +4,7 @@ import { AlgoliaSearch } from '@nrwl/nx-dev/feature-search';
|
|||||||
|
|
||||||
export interface HeaderProps {
|
export interface HeaderProps {
|
||||||
showSearch: boolean;
|
showSearch: boolean;
|
||||||
|
isDocViewer?: boolean;
|
||||||
useDarkBackground?: boolean;
|
useDarkBackground?: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -62,7 +63,12 @@ export function Header(props: HeaderProps) {
|
|||||||
<div className="text-sm flex-shrink-0">
|
<div className="text-sm flex-shrink-0">
|
||||||
<nav className="flex items-justified justify-center space-x-1">
|
<nav className="flex items-justified justify-center space-x-1">
|
||||||
<Link href="/getting-started/intro">
|
<Link href="/getting-started/intro">
|
||||||
<a className="font-bold px-3 py-2 text-white leading-tight">
|
<a
|
||||||
|
className={cx(
|
||||||
|
'px-3 py-2 text-white leading-tight',
|
||||||
|
!!props.isDocViewer ? 'font-bold' : ''
|
||||||
|
)}
|
||||||
|
>
|
||||||
Docs
|
Docs
|
||||||
</a>
|
</a>
|
||||||
</Link>
|
</Link>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user