octue / planex-site

The octue website front end
https://planex-site.vercel.app
0 stars 0 forks source link

Transparency not working on navbar #40

Closed thclark closed 3 years ago

thclark commented 3 years ago

Bug report

What is the current behavior?

Navbar with transparency is supposed to become non-transparent on scroll down. It doesn't anymore; because the navbar is hooked to the windowscroll whereas perfectScrollbar (introduced as an extra feature whilst fixing #28) now scolls a div.

Proposed solution

Use either a context or the same state manager that we use for determining whether dialogs are open, to provide hooks to the scroll.