Skip to content

Commit

Permalink
Fix/jump menu overscroll (#700)
Browse files Browse the repository at this point in the history
* hides jump menu when overscrolling

* changeset
  • Loading branch information
stephiescastle authored Nov 12, 2024
1 parent f750419 commit 4bcdacd
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/real-eggs-shake.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@explorer-1/vue": patch
---

Hides Jump Menu when overscrolling
3 changes: 3 additions & 0 deletions packages/vue/src/components/NavJumpMenu/NavJumpMenu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,9 @@ watch(
&.-ready {
@apply visible #{!important};
}
&.-at-top {
@apply invisible #{!important};
}
.NavSecondaryLink.secondary-root {
span {
@apply border-primary #{!important};
Expand Down
3 changes: 2 additions & 1 deletion packages/vue/src/components/NavSecondary/NavSecondary.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
:class="{
'has-intro': hasIntro,
'!bg-transparent border-none': invert,
'-scrolled-up': scrollDirection === 'up'
'-scrolled-up': scrollDirection === 'up',
'-at-top': posY === 0
}"
>
<div
Expand Down

0 comments on commit 4bcdacd

Please sign in to comment.