File tree 1 file changed +11
-5
lines changed
1 file changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ const Modal = React.createClass({
56
56
onClick = { this . props . backdrop === true ? this . handleBackdropClick : null }
57
57
ref = "modal" >
58
58
< div className = { classNames ( dialogClasses ) } >
59
- < div className = "modal-content" style = { { overflow : 'hidden' } } >
59
+ < div className = "modal-content" >
60
60
{ this . props . title ? this . renderHeader ( ) : null }
61
61
{ this . props . children }
62
62
</ div >
@@ -95,17 +95,23 @@ const Modal = React.createClass({
95
95
) ;
96
96
}
97
97
98
- let style = this . props . bsStyle ;
98
+ let bsStyle = this . props . bsStyle ;
99
99
let classes = {
100
100
'modal-header' : true
101
101
} ;
102
- classes [ 'bg-' + style ] = style ;
103
- classes [ 'text-' + style ] = style ;
102
+ classes [ 'bg-' + bsStyle ] = bsStyle ;
103
+ classes [ 'text-' + bsStyle ] = bsStyle ;
104
104
105
105
let className = classNames ( classes ) ;
106
106
107
+ let style = { } ;
108
+ if ( this . props . bsStyle ) {
109
+ style . borderTopLeftRadius = 'inherit' ;
110
+ style . borderTopRightRadius = 'inherit' ;
111
+ }
112
+
107
113
return (
108
- < div className = { className } >
114
+ < div className = { className } style = { style } >
109
115
{ closeButton }
110
116
{ this . renderTitle ( ) }
111
117
</ div >
You can’t perform that action at this time.
0 commit comments