Girish Sonawane is using a CSS framework called BULMA to make a Modal pop-up in elm, as descibed in article medium.com/@girishso/displaying-mo.... I think by using a fullscreen container div as background it is toggling the modal state onClick. If that is any useful...
renderModal : Model -> Html Msg
renderModal model =
div
[ class "modal is-active", attribute "aria-label" "Modal title" ]
[ div
[ class "modal-background", onClick TogglePopup ]
[]
, div
[ class "modal-card" ]
[ header
[ class "modal-card-head" ]
[ p
[ class "modal-card-title" ]
[ text "Modal title" ]
, button
[ class "delete", onClick TogglePopup, attribute "aria-label" "close" ]
[]
]
...
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Girish Sonawane is using a CSS framework called BULMA to make a Modal pop-up in elm, as descibed in article medium.com/@girishso/displaying-mo.... I think by using a fullscreen container div as background it is toggling the modal state onClick. If that is any useful...
bulma.io/documentation/components/...