mirror of
https://github.com/NoRedInk/noredink-ui.git
synced 2025-01-04 12:47:53 +03:00
Remove closeModal attribute hole
This commit is contained in:
parent
a193082fa9
commit
44eee7f15a
@ -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
|
||||
]
|
||||
|
@ -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 =
|
||||
|
Loading…
Reference in New Issue
Block a user