elm-ui icon indicating copy to clipboard operation
elm-ui copied to clipboard

Having two layouts (one with none) causes padding to break

Open bengolds opened this issue 5 years ago • 2 comments

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

bengolds avatar Jun 20 '19 19:06 bengolds

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

dimfeld avatar Jun 23 '19 07:06 dimfeld

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

tankorsmash avatar Aug 30 '21 23:08 tankorsmash