Remove closeModal attribute hole

This commit is contained in:
Tessa Kelly 2020-09-04 16:49:59 -07:00
parent a193082fa9
commit 44eee7f15a
2 changed files with 7 additions and 7 deletions

View File

@ -728,8 +728,8 @@ closeButtonId =
{-| -}
closeButton : msg -> List (Html.Attribute msg) -> Html msg
closeButton closeModal attrs =
closeButton : msg -> Html msg
closeButton closeModal =
button
(Widget.label "Close modal"
:: onClick closeModal
@ -753,7 +753,7 @@ closeButton closeModal attrs =
, Css.Transitions.transition [ Css.Transitions.color 0.1 ]
]
:: Attrs.id closeButtonId
:: attrs
:: []
)
[ Nri.Ui.Svg.V1.toHtml Nri.Ui.SpriteSheet.xSvg
]

View File

@ -223,7 +223,7 @@ modalSettings settings =
( True, True, True ) ->
{ default
| content =
[ Modal.closeButton CloseModal []
[ Modal.closeButton CloseModal
, viewModalContent settings.content
]
, footer =
@ -245,7 +245,7 @@ modalSettings settings =
( True, False, True ) ->
{ default
| content =
[ Modal.closeButton CloseModal []
[ Modal.closeButton CloseModal
, viewModalContent settings.content
]
, footer =
@ -266,7 +266,7 @@ modalSettings settings =
( True, False, False ) ->
{ default
| content =
[ Modal.closeButton CloseModal []
[ Modal.closeButton CloseModal
, viewModalContent settings.content
]
, focusTrap =
@ -281,7 +281,7 @@ modalSettings settings =
( True, True, False ) ->
{ default
| content =
[ Modal.closeButton CloseModal []
[ Modal.closeButton CloseModal
, viewModalContent settings.content
]
, footer =