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: fix gap above navbar on scroll with uk banner #7671

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

ChefBingbong
Copy link

@ChefBingbong ChefBingbong commented Mar 13, 2024

heyaa. i made this this pr to fix a small issue with the nav bar for us UK users. if in the UK, when navigating on the explore or NFT pages the navbar does not allign back to the top of the page when the uk banner dissapears as the user scrolls. so a larg gap of about 60-70px remains above the navbar as you scroll

the banner is also permentant on the swap page in the current state because swap page on default is within the viewport so you cannot scroll to trigger the hiding of the banner, leaving it permantly in view for UK users.

I made this pr because i cannot dismiss the banner on the swap page and thought it would be nice to have that option aswell as the fix for the gap issue by making sure the navbar snaps back to the top: 0 position when the banner is not visible, if the user scrolls back to the top the banner will transition back in. (i think this is what the original logic was intending)

the dismiss button isnt permenant,i implemented a atom state which will keep the banner dismissed for 5 days if the user choses to close it because i understand the disclaimer is important and it should remain to serve as disclaimer reminder.

vimeo screencast of the issue/fix
https://vimeo.com/manage/videos/922800160/df7c8e17d7?extension_recording=true

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.

None yet

1 participant