mirror of
https://github.com/status-im/react-navigation.git
synced 2025-02-24 17:18:09 +00:00
Fix documention header styles (#1742)
This commit is contained in:
parent
3abbb950e8
commit
48b09bfdae
@ -27,6 +27,10 @@ body, #root, html {
|
||||
.md-header:hover a {
|
||||
visibility: visible;
|
||||
}
|
||||
.link-header a:first-of-type {
|
||||
visibility: visible;
|
||||
color: #182026;
|
||||
}
|
||||
.nextLink {
|
||||
float: right;
|
||||
}
|
||||
|
@ -64,8 +64,10 @@ const MDPage = ({ navigation, docPath }) => (
|
||||
})
|
||||
.join('-');
|
||||
const Header = getHeadingForLevel(level);
|
||||
const linkHeader = id ? '' : 'link-header';
|
||||
const className = `md-header ${linkHeader}`;
|
||||
return (
|
||||
<Header id={id} className="md-header">
|
||||
<Header id={id} className={className}>
|
||||
{children} <a href={`#${id}`} title={children}>#</a>
|
||||
</Header>
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user