From 1ed8cb2038e2b4c21cc2ffecc214b1f0b18f0bfb Mon Sep 17 00:00:00 2001 From: Tessa Kelly Date: Thu, 11 Apr 2019 13:08:59 -0700 Subject: [PATCH] Move the active footer to be shared --- src/Nri/Ui/SlideModal/V2.elm | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/Nri/Ui/SlideModal/V2.elm b/src/Nri/Ui/SlideModal/V2.elm index f498a04b..ef245a41 100644 --- a/src/Nri/Ui/SlideModal/V2.elm +++ b/src/Nri/Ui/SlideModal/V2.elm @@ -132,10 +132,10 @@ viewModal config (State { previousPanel }) summary = currentPanel = [ viewIcon summary.current.icon , Text.subHeading - [ span [ Html.Styled.Attributes.id (panelId summary.current) ] [ Html.text summary.current.title ] + [ span [ Html.Styled.Attributes.id (panelId summary.current) ] + [ Html.text summary.current.title ] ] , viewContent summary.current.content - , viewActiveFooter summary |> Html.map config.parentMsg ] in Keyed.node "div" @@ -166,12 +166,18 @@ viewModal config (State { previousPanel }) summary = , ( panelId summary.current , panelContainer config.height [ Slide.animateIn direction ] currentPanel ) + , ( panelId summary.current ++ "-footer" + , viewActiveFooter summary |> Html.map config.parentMsg + ) ] Nothing -> [ ( panelId summary.current , panelContainer config.height [] currentPanel ) + , ( panelId summary.current ++ "-footer" + , viewActiveFooter summary |> Html.map config.parentMsg + ) ] )