codyhouse / cd-main-header-v2-changelog

Report issues and get notified about changes affecting the 'Main Header v2' component.
https://codyhouse.co/ds/components/app/main-header-v2
0 stars 0 forks source link

Demo page different from code provided? #1

Closed jlahijani closed 3 years ago

jlahijani commented 3 years ago

Demo JS is here: https://codyhouse.co/app/components/source/main-header-v2/dist/main-header-v2.min.js?v=41

Provided JS is here: https://codyhouse.co/ds/components/info/main-header-v2

The Demo JS has references to x-rem etc while the Provided JS does not. Are they out of sync?

When using the provided code, I my navbar does not sticky when scrolling down.

claudia-romano commented 3 years ago

Hi there, in the component demo page we minify HTML, CSS and JavaScript and shorten class names. This is why you see references to classes like x-rem.

You should use only the code that we provide in the Info page/Demo page of the component (using the View Code action button): https://codyhouse.co/ds/components/info/main-header-v2 https://codyhouse.co/ds/components/app/main-header-v2

Cheers