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

Fixed #365 i added scroll-margin-top:5rem to global.css file #366

Merged
merged 3 commits into from
Sep 3, 2023

Conversation

2div
Copy link
Contributor

@2div 2div commented Aug 27, 2023

Describe your changes

h2,
h3,
h4,
h5,
h6 {
margin: 1rem 0 0 0;
scroll-margin-top: 5rem; // i added this line to fix the issue
}

Screenshots - If Any (Optional)

Link to issue

Closes #365

Checklist before requesting a review

  • [ Yes] I have performed a self-review of my code.
  • [ Yes] Followed the repository's Contributing Guidelines.
  • [ Yes] I ran the app and tested it locally to verify that it works as expected.
  • [ Yes] I have checked my code with an automatic accessibility tool such as Axe Dev Tools or Wave
    and it shows no errors.

Additional Information (Optional)

Any additional information that you want to give us.

@github-actions
Copy link

Hello @2div, thanks for raising a pull request in this project. The maintainers of this project are volunteers so please be understanding if it takes time before you get a response. We still appreciate your help with creating pull requests!

Copy link
Member

@EmmaDawsonDev EmmaDawsonDev left a comment

Choose a reason for hiding this comment

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

The scroll margin top works great. However, please revert the changes to the package-lock file and the yarn.lock file. As there were no changes made to these files they don't need to be included in the PR. As soon as they are reverted then this is ready to merge.

@2div
Copy link
Contributor Author

2div commented Aug 29, 2023

The scroll margin top works great. However, please revert the changes to the package-lock file and the yarn.lock file. As there were no changes made to these files they don't need to be included in the PR. As soon as they are reverted then this is ready to merge.

Thank you for your feedback. Can you please explain what you mean by revert the changes to the package-lock file and the yarn.lock file. I do not think i changed or edited these files. I only edit the global CSS file.

May i know what and how to revert these changes you mentioned so that we can do merg ?

@EmmaDawsonDev
Copy link
Member

Sure. These files are created when you do npm install or yarn install. And then if you use the command git add . then it will add them to the commit even though you didn’t make changes to them. That’s why the contributing files suggest using git add name-of-file instead because it’s safer. But it’s no problem as almost everything with git can be undone.

First go to your branch and in the terminal you want to type git revert commit-hash which in this case is git revert 0a99424. You should then be able to do ‘git add styles/globals.css’ and commit and push. That should automatically update this pull request

@2div
Copy link
Contributor Author

2div commented Aug 30, 2023

Sure. These files are created when you do npm install or yarn install. And then if you use the command git add . then it will add them to the commit even though you didn’t make changes to them. That’s why the contributing files suggest using git add name-of-file instead because it’s safer. But it’s no problem as almost everything with git can be undone.

First go to your branch and in the terminal you want to type git revert commit-hash which in this case is git revert 0a99424. You should then be able to do ‘git add styles/globals.css’ and commit and push. That should automatically update this pull request

Thank you for your explanation this topic to me. I did not know about it but now i learned from you.
I did git revert 0a99424`. then ‘git add styles/globals.css’

I request re-review but i am not sure if that the right thing because its my first time see change requested to PR
Should i do new PR ? please advise me. Thank you

Copy link
Contributor Author

@2div 2div left a comment

Choose a reason for hiding this comment

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

Hi, I did ' git revert 0a99424` then did ‘git add styles/globals.css’ as per your request.

@EmmaDawsonDev
Copy link
Member

Great, now the two extra files are gone. For some reason it didn't keep the change that you made to the styles file. If you can add the margin-scroll-top back in and then do git add styles/globals.css again and then commit and push it should be ready to merge. No need to do a new PR, everything you update in your branch will appear here as soon as you push it.

@2div
Copy link
Contributor Author

2div commented Aug 31, 2023

Great, now the two extra files are gone. For some reason it didn't keep the change that you made to the styles file. If you can add the margin-scroll-top back in and then do git add styles/globals.css again and then commit and push it should be ready to merge. No need to do a new PR, everything you update in your branch will appear here as soon as you push it.

Ok , I followed the steps and pushed again. Than you

Copy link
Member

@EmmaDawsonDev EmmaDawsonDev left a comment

Choose a reason for hiding this comment

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

Thanks so much for your help!

@EmmaDawsonDev EmmaDawsonDev merged commit 07221c9 into AccessibleForAll:main Sep 3, 2023
1 check passed
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.

Need scroll margin or padding
2 participants