Skip to content

Commit

Permalink
Merge pull request #1596 from NoRedInk/bat/modal-heading-responsiveness
Browse files Browse the repository at this point in the history
🔧 Ensure there's room for the modal close X
  • Loading branch information
tesk9 authored Jan 17, 2024
2 parents 04b0e34 + a60bb48 commit 3b3f128
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/Nri/Ui/Modal/V12.elm
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,11 @@ module Nri.Ui.Modal.V12 exposing
, isOpen
)

{-|
{-| Patch changes:
- adjust the padding of the heading when the close X is present for viewports less than 1000px wide
# Changes fro V11:
Changes from V11:
- remove use of FocusTrap type alias
- return ids to focus on instead of cmds (in order to make modals more testable via the effect pattern with program-test)
Expand Down Expand Up @@ -467,13 +468,13 @@ titleStyles config =
(Css.px 40)
titleSidePadding
(Css.px 20)
, Css.Media.withMedia [ mobile ]
[ Css.padding3 (Css.px 20) titleSidePadding Css.zero
]
, Css.margin Css.zero
, Css.fontSize (Css.px 20)
, Css.textAlign Css.center
, Css.color config.titleColor
, Css.Media.withMedia [ mobile ]
[ Css.padding3 (Css.px 20) (Css.px 20) Css.zero
]
]

else
Expand Down

0 comments on commit 3b3f128

Please sign in to comment.