elm-ui
elm-ui copied to clipboard
Having two layouts (one with none) causes padding to break
https://ellie-app.com/5S7gMRYzTTKa1
Expected behavior
I wouldn't expect having multiple calls to Element.layout
to break style rules, but in this case, having a layout with Element.none
seems to wipe out the padding on a separate Element.layout
.
Versions
- OS: MacOS
- Browser : Chrome 74
- Elm Version 0.19
- Elm UI Version 1.1
I think this is the same thing as https://github.com/mdgriffith/elm-ui/issues/93.
Looks like if there is more than one layout
, all but one should be Element.layoutWith { options = [ Element.noStaticStyleSheet ] }
instead. I modified your example with that change and it seems to work. https://ellie-app.com/5Tf4tHkHv8ba1
This appears to have been resolved by 1.0.0, and here's an ellie of it working in 1.1.8 https://ellie-app.com/f992rzzkGsya1