File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed
Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 4343
4444.modal-body {
4545border-radius : var (--theme-radius ) var (--theme-radius ) 0 0 ;
46- padding : 2em ;
4746overflow-y : auto;
4847box-sizing : border-box;
4948z-index : 1 ;
5049position : relative;
5150}
5251
52+ .modal-body-spacer {
53+ margin : 2em ;
54+ }
55+
5356.modal-heading : focus {
5457outline : none;
5558}
Original file line number Diff line number Diff line change @@ -101,6 +101,7 @@ var modal = (function(){
101101bind . focus . remove ( ) ;
102102} ;
103103var modalBody = helper . node ( "div|class:modal-body" ) ;
104+ var modalBodySpacer = helper . node ( "div|class:modal-body-spacer" ) ;
104105var modalControls = helper . node ( "div|class:modal-controls form-group" ) ;
105106var actionButton = helper . node ( "button:" + options . actionText + "|class:button button-line button-block modal-button,tabindex:1" ) ;
106107var cancelButton = helper . node ( "button:" + options . cancelText + "|class:button button-line button-block modal-button,tabindex:1" ) ;
@@ -118,7 +119,7 @@ var modal = (function(){
118119value : 1
119120} ]
120121} ) ;
121- modalBody . appendChild ( modalHeading ) ;
122+ modalBodySpacer . appendChild ( modalHeading ) ;
122123} ;
123124if ( options . content ) {
124125if ( typeof options . content == "string" ) {
@@ -128,11 +129,12 @@ var modal = (function(){
128129text : options . content
129130} ) ;
130131container . appendChild ( para ) ;
131- modalBody . appendChild ( container ) ;
132+ modalBodySpacer . appendChild ( container ) ;
132133} else {
133- modalBody . appendChild ( options . content ) ;
134+ modalBodySpacer . appendChild ( options . content ) ;
134135} ;
135136} ;
137+ modalBody . appendChild ( modalBodySpacer ) ;
136138modalWrapper . appendChild ( modalBody ) ;
137139modalWrapper . appendChild ( modalControls ) ;
138140modal . appendChild ( modalWrapper ) ;
You can’t perform that action at this time.
0 commit comments