On Tuesday, September 13, 2016 at 3:38:30 PM UTC+1, OvermindDL1 wrote:
>
> It is to help enforce usage with the spec:  
> https://material.google.com/components/dialogs.html#dialogs-specs
>
> You can actually very easily use mdl directly by just putting the right 
> classes and attributes on things, elm-mdl is to help enforce following the 
> official spec.  :-)
>

In most cases you can, but I think not with Dialog. Since I need to use 
Dialog.openOn to show the Dialog, does that not also mean that the dialog 
has to be created with Dialog.view? In which case I am constrained to 
building it with Dialog.Blocks. Perhaps I am wrong about that, and just 
need to set the class to "elm-mdl-singleton-dialog" or whatever the class 
name is, and Dialog.openOn will work?

I've never looked at the material design spec particularly closely, but if 
the spec is for dialogs with only title, content and actions, perhaps I 
should stick with that. I have one particular case which is the login 
dialog, which I would like to make a bit more fancy than a regular dialog 
though - I suppose there is no real need for it to be a modal dialog, 
either a card using z position to bring it to the front, or a full login 
page with a login box in the middle might be better designs. 

-- 
You received this message because you are subscribed to the Google Groups "Elm 
Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to