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

fix links to sections in the articles #1000

Closed
wants to merge 1 commit into from

Conversation

jcubic
Copy link
Contributor

@jcubic jcubic commented Sep 23, 2024

Checklist:

This PR fixes annoying issue when you have Table of Contents and links with hash to section in the article. The scrollbar offset only take into account the header but ignored the banner that is below. I report it to editorial team, not sure if anyone created an issue for this. They said they want to get this fixed.

Closes #528

@jcubic jcubic requested a review from a team as a code owner September 23, 2024 17:38
@github-actions github-actions bot closed this Sep 23, 2024
@raisedadead raisedadead reopened this Sep 23, 2024
@github-actions github-actions bot closed this Sep 23, 2024
@raisedadead raisedadead reopened this Sep 23, 2024
@freeCodeCamp freeCodeCamp deleted a comment from github-actions bot Sep 23, 2024
@freeCodeCamp freeCodeCamp deleted a comment from github-actions bot Sep 23, 2024
@freeCodeCamp freeCodeCamp deleted a comment from github-actions bot Sep 23, 2024
@raisedadead
Copy link
Member

Sorry about the noise with the bot. We will review these changes but we recommend you avoid editing code off of GitHub directly.

Copy link
Member

@naomi-lgbt naomi-lgbt left a comment

Choose a reason for hiding this comment

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

There seem to be a few unrelated changes in this file.

@@ -171,7 +171,6 @@ body {
/* ---------------------------------------------------------- */

.site-nav {
z-index: 300;
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
z-index: 300;
z-index: 300;

@@ -2209,7 +2208,6 @@ p.footer-donation a:hover {
.tags-row > .tag:hover {
background: var(--gray15);
color: var(--gray75);
color: var(--gray75);
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
color: var(--gray75);
color: var(--gray75);

@@ -2240,7 +2238,6 @@ p.footer-donation a:hover {
button.cta-button,
a.cta-button {
width: content;
text-decoration: none;
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
text-decoration: none;
text-decoration: none;

@jcubic
Copy link
Contributor Author

jcubic commented Sep 23, 2024

@naomi-lgbt yes, it was your bot that deleted some lines.

@jcubic
Copy link
Contributor Author

jcubic commented Sep 23, 2024

@raisedadead how is adding commit from GitHub different from commit and push locally?

@a2937
Copy link
Member

a2937 commented Sep 24, 2024

@raisedadead how is adding commit from GitHub different from commit and push locally?

Allow me to provide my own input. Generally speaking while adding a commit from GitHub is messier and doesn't provide an opportunity to test things locally. The number one rule when it comes to software development is to test early and often. You'll never know what kind of bugs might be present, and then there's still a chance you'll miss something.

@jcubic
Copy link
Contributor Author

jcubic commented Sep 25, 2024

I can remove the commit the bot added and force push. I hope it will not delete that stuff again.

@raisedadead
Copy link
Member

@jcubic I have turned off the bot. Will you be OK to create a fresh PR? We recommend using GitPod or Codespaces if you prefer working on the browser.

@jcubic
Copy link
Contributor Author

jcubic commented Sep 26, 2024

Created new PR #1010

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.

Extra Scroll padding for linked section
4 participants