Skip to content

Commit

Permalink
exampleModalLabel -> modal-title
Browse files Browse the repository at this point in the history
  • Loading branch information
rametta committed Apr 8, 2021
1 parent 14e43b0 commit adcbecc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions IHP/Modal/ViewFunctions.hs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import Text.Blaze.Html5 (Html, preEscapedText)

renderModal modal = renderModal' modal True
renderModal' Modal { .. } show = [hsx|
<div class={modalClassName} id="modal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true" style={displayStyle} onclick="if (event.target.id === 'modal') document.getElementById('modal-backdrop').click()">
<div class={modalClassName} id="modal" tabindex="-1" role="dialog" aria-labelledby="modal-title" aria-hidden="true" style={displayStyle} onclick="if (event.target.id === 'modal') document.getElementById('modal-backdrop').click()">
{modalInner}
</div>
<a id="modal-backdrop" href={modalCloseUrl} class={backdropClassName} style={displayStyle}/>
Expand Down Expand Up @@ -44,7 +44,7 @@ renderModal' Modal { .. } show = [hsx|
renderModalHeader :: Text -> Text -> Html
renderModalHeader title closeUrl = [hsx|
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">{title}</h5>
<h5 class="modal-title" id="modal-title">{title}</h5>
<a href={closeUrl} class="btn-link close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">{preEscapedText "&times;"}</span>
</a>
Expand Down

0 comments on commit adcbecc

Please sign in to comment.