File tree 1 file changed +16
-2
lines changed
1 file changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -31,8 +31,22 @@ export default class Modal extends Component {
31
31
} ) ,
32
32
portalClassName : PropTypes . string ,
33
33
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
+ ] ) ,
36
50
appElement : PropTypes . instanceOf ( SafeHTMLElement ) ,
37
51
onAfterOpen : PropTypes . func ,
38
52
onRequestClose : PropTypes . func ,
You can’t perform that action at this time.
0 commit comments