Skip to content

Commit 48b09bf

Browse files
Paul McBrideskevy
Paul McBride
authored andcommitted
Fix documention header styles (react-navigation#1742)
1 parent 3abbb95 commit 48b09bf

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

website/src/App.css

+4
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ body, #root, html {
2727
.md-header:hover a {
2828
visibility: visible;
2929
}
30+
.link-header a:first-of-type {
31+
visibility: visible;
32+
color: #182026;
33+
}
3034
.nextLink {
3135
float: right;
3236
}

website/src/MDPage.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,10 @@ const MDPage = ({ navigation, docPath }) => (
6464
})
6565
.join('-');
6666
const Header = getHeadingForLevel(level);
67+
const linkHeader = id ? '' : 'link-header';
68+
const className = `md-header ${linkHeader}`;
6769
return (
68-
<Header id={id} className="md-header">
70+
<Header id={id} className={className}>
6971
{children} <a href={`#${id}`} title={children}>#</a>
7072
</Header>
7173
);

0 commit comments

Comments
 (0)