Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correct anchor height offset for Black Lives Matter banner #2109

Merged
merged 1 commit into from
Jul 28, 2020

Conversation

FLGMwt
Copy link
Contributor

@FLGMwt FLGMwt commented Jul 28, 2020

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
Copy link

react-native-bot commented Jul 28, 2020

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

Copy link
Collaborator

@Simek Simek left a comment

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
Copy link
Contributor Author

FLGMwt commented Jul 28, 2020

@Simek

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

@Simek Simek merged commit a0fc904 into facebook: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