Elm-port of the Material Design Lite CSS/JS library
This release adds requested minor features.
Features:
Documentation:
This release patches various bugs and regressions caused by the Elm 0.18 upgrade, and upgrades to Google MDL v1.3.0.
If you are upgrading from 8.0.0 and manually load MDL CSS, you will need swich
to loading v1.3.0 CSS. See "Load CSS from HTML" in the Material.Scheme
documentation.
Bugfixes:
Documentation fixes:
Internals & building:
This release embodies a major re-working of elm-mdl internals:
Many thanks to @MichaelCombs28 for providing a temporary elm-mdl upgrade fork when we were too slow to upgrade the main repo.
We removed all dependencies on the Parts library. This change essentially does
not affect the elm-mdl API. You still use the render
function to construct
elm-mdl widgets; you still do not have to represent them explicitly in your
model.
This change puts elm-mdl in conformance with component guidelines from Elm language creators; in particular, elm-mdl no longer dispatches function values in messages.
You can observe this change by adding Debug.log msg
someplace; you will then
be able to see readable, serialisable elm-mdl messages in your browser's
Javascript Console.
You can now add any attribute of Html.Attributes.*
to any elm-mdl widget. If
you are adding event handlers, please do not use attributes from Html.Events
,
but use instead the ones from Material.Options
. Using the latter ensures that
if you are registering a handler for an event that elm-mdl also processes
internally, both handlers will trigger.
This change is due to very sophisticated work by @vipentti, and relies on his Dispatch to manage multiple subscriptions to the same event.
If you are upgrading from 7.x.x, this release requires some migration. See MIGRATION.md for details.
Features:
href
on buttons #201 #235 (vipentti)Bugfixes:
Documentation fixes:
Internals & building:
This release adds a Chip component, implements id-attribute support, and improves elm-mdl performance.
Implemented enhancements:
Closed issues:
Documentation fixes
This release updates Google MDL CSS to 1.2.0, fixes various minor bugs and exposes Card.Block
.
If you are loading CSS from your own Html file, you need to load MDL 1.2.0.
If you are (a) supporting Firefox, (b) loading CSS from your own Html file, and (c) using custom blur
/ focus
handlers on Textfield, you will need to load a polyfill. See below.
Firefox does not properly support focusin
and focusout
DOM events. This breaks Textfield's floating label (#166) and/or custom handlers for Textfield's custom event handlers (#194).
You will need a polyfill for Textfield with floating labels or custom event-handlers for blur
and focus
. Material.Scheme.topWithScheme
loads one automatically; to load it instead from your own Html, see the demo.
We expect to remove the need for this polyfill in the next major release. See also @vipentti's comments on this issue.
We still love you, Firefox.
Features:
Fixed bugs:
Fixed Documentation:
<input>
element [#130].
Credit: @vipentti, #151.<input>
element [#148]Button.plain
[#138]This release marks a substantial achievement of elm-mdl: we have now ported every component of Google's Material Design Lite!
Live demo here, package here, github here.
The release contains 6 new components: Cards, Lists, Dialog, Tabs, Sliders & Typography; a large amount of bugfixes, in particular wrt. browser compatibility; improved documentation; and substantial improvements to the demo.
The release requires minor changes to your elm-mdl boilerplate; details here.
Thanks to Google for making their JS/CSS MDL implementation available.
Supporting all components of Google's MDL is obviously a huge milestone for elm-mdl. I could never have reached this point by myself; I'm so happy and grateful that so many people chose to devote their time and energy to this project. So a huge thank you to all of you who contributed to elm-mdl, to this release or earlier ones:
Also a big thank you to all those who are using elm-mdl; who has encouraged me in the elm-slack and on elm-discuss; and who has taken the trouble to open github issues: your kindness and encouragment has been a big part in getting to this point. I want to mention in particular early adopter @groob and issue-author extraordinaire @OvermindDL1.
Thank you, all, for helping get elm-mdl this far!
Søren Debois