GwtMaterialDesign / gwt-material

A Google Material Design wrapper for GWT
https://gwtmaterialdesign.github.io/gmd-core-demo/
Apache License 2.0
411 stars 124 forks source link

Conflicting css rules with other existing (already loaded) libraries #951

Open andreififiita opened 4 years ago

andreififiita commented 4 years ago

I noticed that many css properties are set to base html elements (for example: button, table, input etc) without using a root style class name specific to GWT material components. Is there a way to load resources without these overrides / initializations so they do not interfere with other elements? Or do we have to solve each conflict by resetting the base styles with our own?

kevzlou7979 commented 4 years ago

These are predefined in Materialize.css file I think we have a module to not just include these files instead. Use GwtMaterialDesignBasic.gwt.xml or GwtMaterialDesignWithJQuery.gwt.xml if you want just to load the basic stylenames which are animation.min.css and material-icons.min.css

andreififiita commented 4 years ago

Ok, Thanks. But it would still be nice to use both in an App. The purpose is to make a smooth transition in the same gwt if module if needed, or to use other components without possible glitches.