So this is more like observation. Anyway, I've been playing around with styling of the elm-datapicker
to suits my needs and it's been quite tricky. I've been wondering if it'd not be easier to maybe make cellFormatter
function similar to
cellFormatter =
\{day, isDisabled, isSelected, isToday} ->
Html.Button
[ Attributes.classList [
("button is-fullwidth is-small", True)
, ("is-white", not <| isSelected)
, ("is-primary is-active", isSelected)
, ("has-text-weight-bold", isToday)]
, Attributes.disabled isDisabled
]
[ Html.text day ]
That somehow seems nicer and easier to control from withing the module that uses the picker.
That's the idea, I don't how much much we could take this further (regarding other styles) if you see a value here.