gregziegan / elm-autocomplete

Autocomplete for Elm apps; in Elm
http://package.elm-lang.org/packages/thebritican/elm-autocomplete/latest
BSD 3-Clause "New" or "Revised" License
173 stars 43 forks source link

Use Elm-CSS for styling #11

Closed gregziegan closed 8 years ago

gregziegan commented 8 years ago

elm-css enables the styling of a component via union types in Elm, and guarantees compile time class name checks. An example with this working on the new 0.17 version will help consumers build their apps in a more explicit manner.

gregziegan commented 8 years ago

So, after looking more at elm-css, it seems a helper function producing an Html.Attribute is used to generate the appropriate attribute rather than a list of classes. Their class function allows the passing in of union types. All that needs to be done there is provide a configuration function for defining a custom html attribute on the sub views. This would be a minor update, so it's not necessary while elm-css is in self-described beta for 3.0

gregziegan commented 8 years ago

With #26, the configuration will take a List Html.Attribute for list items and the list. So, Elm-CSS will work fine

gregziegan commented 8 years ago

Already possible with new API