fix checkbox positioning and z-index

This commit is contained in:
Brian Hicks 2020-12-10 14:18:51 -06:00
parent 4cef8dae2b
commit 9bac079e0b

View File

@ -93,6 +93,7 @@ view attrs isOn =
, Attributes.css
[ Css.displayFlex
, Css.alignItems Css.middle
, Css.position Css.relative
]
]
[ viewCheckbox
@ -133,6 +134,7 @@ viewCheckbox config =
[ Css.position Css.absolute
, Css.top (Css.px 10)
, Css.left (Css.px 10)
, Css.zIndex (Css.int 0)
]
]
, case config.onCheck of
@ -171,6 +173,7 @@ viewSwitch config =
else
Css.batch []
, Css.zIndex (Css.int 1)
]
]
[ Svg.defs []