I am trying to style an elm-mdl component using elm-css attributes:
Button.render Mdl
[ 5 ]
model.mdl
[ Button.colored
, Button.raised
, Button.ripple
, marginRight (px 20)
]
[ text "Register" |> toUnstyled ]
|> fromUnstyled
but the line marginRight (px 20) generates an error because the Button expects a Button.Property m and marginRight (px 20) is a Style.
Is there any sequence of function calls that can convert a CSS style created by elm-css so that it is usable by elm-mdl?
For now, I'm using Material.Options.css "margin-right" "20px", but wuold prefer to use elm-css for the type safety.