File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -31,8 +31,22 @@ export default class Modal extends Component {
3131 } ) ,
3232 portalClassName : PropTypes . string ,
3333 bodyOpenClassName : PropTypes . string ,
34- className : PropTypes . oneOfType ( [ PropTypes . string , PropTypes . object ] ) ,
35- overlayClassName : PropTypes . oneOfType ( [ PropTypes . string , PropTypes . object ] ) ,
34+ className : PropTypes . oneOfType ( [
35+ PropTypes . string ,
36+ PropTypes . shape ( {
37+ base : PropTypes . string . isRequired ,
38+ afterOpen : PropTypes . string . isRequired ,
39+ beforeClose : PropTypes . string . isRequired
40+ } )
41+ ] ) ,
42+ overlayClassName : PropTypes . oneOfType ( [
43+ PropTypes . string ,
44+ PropTypes . shape ( {
45+ base : PropTypes . string . isRequired ,
46+ afterOpen : PropTypes . string . isRequired ,
47+ beforeClose : PropTypes . string . isRequired
48+ } )
49+ ] ) ,
3650 appElement : PropTypes . instanceOf ( SafeHTMLElement ) ,
3751 onAfterOpen : PropTypes . func ,
3852 onRequestClose : PropTypes . func ,
You can’t perform that action at this time.
0 commit comments