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

ClassName in wrapperClassName #152

Open
batbyR opened this issue Oct 2, 2018 · 0 comments
Open

ClassName in wrapperClassName #152

batbyR opened this issue Oct 2, 2018 · 0 comments

Comments

@batbyR
Copy link

batbyR commented Oct 2, 2018

Hello thank you for your plugin,

In order to use css adjacent sibling selector with the Headroom depending on it state :

.headroom--unpinned + .page-content {  
    position: fixed;
    height: calc(100%);
    margin-top: 0px;
  }
   .headroom--scrolled + .page-content {
    transition: height 500ms ease-in-out, margin-top 500ms ease-in-out;
  }

I had to modify the wrapperClassName :

const wrapperClassName = userClassName
      ? `${userClassName} headroom-wrapper ${className}`
      : `headroom-wrapper ${className}`;

Do you know a better way to do this? There is a need to add a fix here?

Thanks for all

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

1 participant