Open david-boles opened 6 years ago
Hey @david476, we'll look into how we can simplify this for sites already using MDL. We are also open to ideas if you figure out a clean way to do this.
@bojeil-google Would it work to just mark firebase-ui specific stuff with !important
? Then I could override mdl without overriding yours.
Alternatively, a distribution that doesn't include mdl?
I've been using Material UI and was seeing a difference when this CSS was loaded. I finally realized that all this time I wasn't correctly loading the Roboto fonts, and when I used the firebaseui CSS, they were loaded. When I disabled firebaseui and properly loaded Roboto, the firebaseui CSS caused no problems.
@shawnlauzon Thanks for the suggestion, but given that I'm using MDL and not seeing the fonts changing, I'm guessing that's not my problem.
@david476 Oh well, worth a shot. Good luck
@bojeil-google,
IMO we should offer two versions of our CSS:
I'll change this issue into this feature request.
About the issue here, I think this usually also happen because developer often override base MDL styles. In general you should avoid this and always add a Class name to your elements and modify CSS rules based on those new class-names. This will avoid clashes of this sort.
There seem to be issues with using this and sites that use MDL, beyond what was covered in #24. Specifically, for me, putting your CSS above my MDL changed the color of my buttons, and putting it after made the colors of the login buttons (at least the Google one) wrong... Anyway, it would be nice if it was just drop in and I didn't have to manually fix things.