Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stance on CSS-only ? #5036

Closed
Download opened this issue Feb 15, 2017 · 3 comments
Closed

stance on CSS-only ? #5036

Download opened this issue Feb 15, 2017 · 3 comments

Comments

@Download
Copy link

Hi guys, just wanted to ask you a question about css-only design.

Please have a look at this (demo) project:
http://mildrenben.github.io/surface/

It is built to function even without Javascript enabled. The big (imho) advantage of this is that is has the best time-to-interactive performance possible; even before the JS loads, it functions as expected.

I understand it is a pretty hefty requirement, but Surface proves there is a lot that can be achieved this way. If only the most important components (such as the drawer) would work like this, it would still give a great benefit.

Have you given this any consideration? And can you maybe share your thoughts on this?

@ZanderBrown
Copy link

That. Is. Seriously, Cool.

@rofrol
Copy link

rofrol commented Mar 8, 2017

Nice, but clicking second time in button doesn't cause ripple effect.

You can use a:active like here https://mladenplavsic.github.io/css-ripple-effect/ to have ripple on every click.

@Garbee
Copy link
Collaborator

Garbee commented Mar 8, 2017

MDL won't go CSS-only from the team as it is in community support only at this point and to refactor everything needed is an extreme task. Also considering the browser support for 1.x only using CSS for quite a few components isn't feasible to match MD guidelines.

Material Components for Web should support CSS-only as much as possible (especially in regards to forms) and enhance from there for full fidelity with JavaScript. As explained in the issue upstream.

We aren't currently planning any major revisions to MDL, which would be required with such a change being made, since the deploy process is arduous. The focus is on Material Components for Web since it has a streamlined deploy process and is moving the project to be an actual reference implementation over "just another project."

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants