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

[docs] Address anchor linking issue #5795

Merged
merged 1 commit into from
Mar 29, 2023
Merged

[docs] Address anchor linking issue #5795

merged 1 commit into from
Mar 29, 2023

Conversation

charlieegan3
Copy link
Contributor

This addresses an issue where the old hacky way of padding an anchor (which I added) messed with the flow of linking to anchors in tables.

This makes a few changes:

  • hides banners with display none rather than removing them using a class on the parent
  • makes the article content sticky
  • makes the hight of the article content change based on if the banner is showing or not.
Screen.Recording.2023-03-29.at.11.13.04.mov

This addresses an issue where the old hacky way of padding an anchor
(which I added) messed with the flow of linking to anchors in tables.

This makes a few changes:
- hides banners with display none rather than removing them using a
  class on the parent
- makes the article content sticky
- makes the hight of the article content change based on if the banner
  is showing or not.

Signed-off-by: Charlie Egan <[email protected]>
@netlify
Copy link

netlify bot commented Mar 29, 2023

Deploy Preview for openpolicyagent ready!

Name Link
🔨 Latest commit fd5df6b
🔍 Latest deploy log https://app.netlify.com/sites/openpolicyagent/deploys/642410600dc5780007227b96
😎 Deploy Preview https://deploy-preview-5795--openpolicyagent.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

Copy link
Contributor

@johanfylling johanfylling left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@charlieegan3 charlieegan3 merged commit 2b2cb12 into open-policy-agent:main Mar 29, 2023
@charlieegan3
Copy link
Contributor Author

Thanks Johan!

@charlieegan3 charlieegan3 deleted the anchor-fix-again branch March 29, 2023 11:57
charlieegan3 added a commit that referenced this pull request Mar 30, 2023
* [docs] Fix dashboard hight issue

#5795, merged yesterday,
contained a flawed assumption: that a warning banner was always
displayed. This is not the case and led to the latest docs page wrapper
height being incorrect.

This changes the management of the messages and dashboard wrapper to be
in the same place and makes a change so that the height can be correctly
calculated regardless of the version.

Signed-off-by: Charlie Egan <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants