Open bhyland opened 2 years ago
@bhyland sorry about taking so long to reply! I'm the worst with github notifications. Thanks for reporting! I'll take a look :)
Hey this is an issue for me too, I managed to partially work around it but I don't really know why my "hack" fixes it. I suppose that elm-book defines some css classes that collide with the stylesheets elm-ui generates/uses.
-- I'm also using the set up for elm-ui as described in the elm-book documentation.
withComponentList items =
case items of
[] ->
Chapter.withComponentList []
(firstLabel, first) :: rest ->
(firstLabel, first |> Element.layout [] |> Element.html) :: rest
|> Chapter.withComponentList
First of all, thanks so much for a great library! I tried out elm-book after the presentation at the last meetup and I think it'll see regular use.
I found the following issue when using elm-ui - it looks like elm-book's css is overriding elm-ui's colors in component lists. It's only with colours, and strangely it renders the last item in the component list correctly.
Description
Example
This example renders as follows:
Expected Behaviour
All examples are coloured as their labels suggest.
See the following screenshot, created by disabling "color: inherit;" for each item in the list in the inspector.
Tested With
Elm 19.1 elm-book 1.4.2 elm-ui 1.1.8
Tested in both Firefox and Chrome.
I have also confirmed that this happens with Element.Input.text