>
> I am curious as to why attributes of elm-mdl things are different from 
> normal attributes, doing things like `Option.cs` compared to `Html.class` 
> is just an odd discrepancy when I thought it might be possible just to use 
> both elm-mdl specific things as well as normal ones (perhaps via a Union 
> type?)
>

Precisely because elm-mdl needs to set certain classes on elements, but so 
does the user. We can't let the user supply `class`, because elm-mdl cannot 
subsequently add to that. Internally, `cs` and friends are actually implemented 
<https://github.com/debois/elm-mdl/blob/master/src/Material/Options.elm#L173-L177>using
 constructors 
of a union type 
<https://github.com/debois/elm-mdl/blob/master/src/Material/Options/Internal.elm>
. 

-- 
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