material-components-web icon indicating copy to clipboard operation
material-components-web copied to clipboard

improve form, buttons, links

Open ghost opened this issue 9 years ago • 6 comments

Can you make it easier to implement into third party frameworks?

** forms should work without classes, ids ** buttons should work without classes ** <li> list items

ghost avatar Jul 06 '17 05:07 ghost

We require targets to work to keep things separated and non-conflicting with other projects. If you don't want to use the class targets for styling then you can use Sass to setup your targets how you want for styling plain elements.

"Easier to integrate" however, is actually done by requiring the classes. This avoids style collisions that developers don't expect so you aren't needing to override various parts of one tool or another. By removing the classes, it ends up being more work and more confusing for people to integrate with other tools.

Garbee avatar Jul 06 '17 12:07 Garbee

We agree with Garbee. If you have any other suggestions though about how to make framework integration easier, we're going to leave this thread open as a Discussion

Thanks for filing!

amsheehan avatar Jul 06 '17 19:07 amsheehan

you are thinking that people are going to use more than one styling framework per project.. but this is not the case.

ghost avatar Jul 07 '17 04:07 ghost

It very much is the case. Or people just want to get one or two components into another framework. Hence why MCW is a library of components and not a framework.

This is directly from experience with MDL. I say people will mix things because they do. Whether it is expected or not.

Garbee avatar Jul 07 '17 10:07 Garbee

@amsheehan There's something like a policy or expiring time to close a Discussion?

hugufc avatar Jul 07 '17 20:07 hugufc

I'm closing this discussion since there hasn't been any discussion since three days ago. The consensus is that MDC Web is a library of components, not a framework. MDC Web uses classes to avoids style collisions with other tool or frameworks.

lynnelainejepsen avatar Jul 10 '17 20:07 lynnelainejepsen