Skip to content

Correct anchor height offset for Black Lives Matter banner#2109

Merged
Simek merged 1 commit into
react:masterfrom
FLGMwt:adjust-anchor-header-offset
Jul 28, 2020
Merged

Correct anchor height offset for Black Lives Matter banner#2109
Simek merged 1 commit into
react:masterfrom
FLGMwt:adjust-anchor-header-offset

Conversation

@FLGMwt

@FLGMwt FLGMwt commented Jul 28, 2020

Copy link
Copy Markdown
Contributor
Before After
before after

The Black Lives Matter call to action banner added a fixed 100px to the pre-content banner height. Docusaurus seems to have a built-in anchor style to handle this itself, so this just updates that -80 to -180. Mobile was off a bit differently but 160px looked alright there.

EDIT: mobile before and after:

Before After
before-mobile after-mobile

@react-native-bot

react-native-bot commented Jul 28, 2020

Copy link
Copy Markdown

Deploy preview for react-native ready!

Built with commit 738360c

https://deploy-preview-2109--react-native.netlify.app

Changes to docs/ are reflected in the next "master" version.

Thank you for your contributions.

How to ContributeDocumentation Sources

@Simek Simek left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @FLGMwt, thank you for the fix and the preview of the changes, that's great! 👍

Just a small request before the merge - can you move the code under the 'announcement banner' section in the header.css file - https://github.com/facebook/react-native-website/blob/master/website/static/css/header.css#L201 ?

It will help to revert all the changes in the future and ensures that no unneeded code will left.

@FLGMwt FLGMwt force-pushed the adjust-anchor-header-offset branch from c4566ee to 738360c Compare July 28, 2020 22:05
@FLGMwt

FLGMwt commented Jul 28, 2020

Copy link
Copy Markdown
Contributor Author

@Simek

👍 Done! Put it right after the header container heights since that seemed the most relevant.

@Simek Simek merged commit a0fc904 into react:master Jul 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants