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. :-) On Tuesday, September 13, 2016 at 2:44:14 AM UTC-6, Rupert Smith wrote: > > On Tuesday, September 13, 2016 at 9:42:16 AM UTC+1, Rupert Smith wrote: >> >> One thing that I found a little awkward about elm-mdl is the way Dialog >> can only be contructed from Dialog.Blocks, and there are only the 'title', >> 'content' and 'actions' constructors available to build such blocks. In my >> custom styling I had added an mdl-dialog__media style and used it to render >> an image on the dialog just like with cards. I have no way of making that a >> Dialog.Block so I just left it out for now. >> >> It is handy to have constructors for various bits of the dialog box, but >> perhaps their type should be Html Msg instead of Block? So that any Html I >> like can be placed into a dialog. >> > > Or perhaps a Block constructor that turns any Html into a Block? > -- 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.
