mkhairi / materialize-sass

Materializecss rubygem for Rails Asset Pipeline / Sprockets
http://materialize.labs.my/
MIT License
806 stars 243 forks source link

Navbar module not working.... #183

Closed iarobinson closed 5 years ago

iarobinson commented 5 years ago

From my development experience, the materialize-sass gem doesn't load the JavaScript properly.

Specifically, the navbar module doesn't work.

Here is a screenshot of a brand new app with the materialize gem installed as per the documentation, and a navbar which is copied directly from the Bootstrap documentation.

Mobile view:

screen shot 2018-10-26 at 12 55 12 pm

Desktop view:

screen shot 2018-10-26 at 12 55 16 pm

I can confirm materialize, jQuery and bootstrap are all loaded. Therefore, I'm guessing it's an issue with the sequence in which they are loaded. I feel it's likely related to how Rails loads them.

Thoughts?

iarobinson commented 5 years ago

I've uploaded a blank app with the materialize gem installed and a root view of the navbar I'm trying to get working at the following link:

https://github.com/iarobinson/materialize_rails_app

mkhairi commented 5 years ago

Hi @iarobinson, materializecss is not base on bootstrap framework. you should refer official materilaizecss documentation instead. not bootstrap.

mkhairi commented 5 years ago

if you looking bootstrap base material design, take a look at this gem material-sass.