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

Navbar color-on-scroll bug when adding ngIf #7

Open
Nexmind opened this issue Sep 28, 2018 · 1 comment
Open

Navbar color-on-scroll bug when adding ngIf #7

Nexmind opened this issue Sep 28, 2018 · 1 comment

Comments

@Nexmind
Copy link

Nexmind commented Sep 28, 2018

Hello !
I have somes issues with the color-on-scroll attribute.

I have start from the example in the Paper Kit project, and modify three things in the component:

  1. remove nav-down class in the nav-bar
  2. modify the color-on-scroll attribute and set it to 20 (no matter the value i put, the color change always at the same pixel)
  3. create a navbar service (because i must deal with 2 navbar) and add a *ngIf="!nav.visible" in my html on my nav tag

The real problem is when I put this *ngIf, the color change doesnt work anymore.

@chelaruc
Copy link
Contributor

chelaruc commented Oct 8, 2018

@Nexmind What code do you use for color-on-scroll?

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

No branches or pull requests

2 participants