@@ -17,8 +17,9 @@ function Modal({
1717 style,
1818 dialog_style,
1919 content_style,
20+ backdrop_style,
2021 class_name,
21- modal_class_name ,
22+ dialog_class_name ,
2223 content_class_name,
2324 backdrop_class_name,
2425 autofocus,
@@ -31,10 +32,11 @@ function Modal({
3132 zIndex,
3233 dialogStyle,
3334 contentStyle,
35+ backdropStyle,
3436 className,
3537 backdropClassName,
3638 contentClassName,
37- modalClassName ,
39+ dialogClassName ,
3840 setProps,
3941 ...otherProps
4042} ) {
@@ -48,11 +50,12 @@ function Modal({
4850 < RBModal
4951 animation = { fade }
5052 dialogAs = { tag }
53+ className = { class_name || className }
5154 dialogStyle = { dialog_style || dialogStyle }
55+ dialogClassName = { dialog_class_name || dialogClassName }
5256 contentStyle = { content_style || contentStyle }
53- dialogClassName = { class_name || className }
54- className = { modal_class_name || modalClassName }
5557 contentClassName = { content_class_name || contentClassName }
58+ backdropStyle = { backdrop_style || backdropStyle }
5659 backdropClassName = { backdrop_class_name || backdropClassName }
5760 autoFocus = { autofocus || autoFocus }
5861 enforceFocus = { enforceFocus }
@@ -145,23 +148,28 @@ Modal.propTypes = {
145148 */
146149 content_style : PropTypes . object ,
147150
151+ /**
152+ * Inline CSS styles to apply to the backdrop
153+ */
154+ backdrop_style : PropTypes . object ,
155+
148156 /**
149157 * Additional CSS classes to apply to the Modal.
150158 */
151159 class_name : PropTypes . string ,
152160
153161 /**
154- * CSS class to apply to the modal.
162+ * Additional CSS classes to apply to the modal.
155163 */
156- modal_class_name : PropTypes . string ,
164+ dialog_class_name : PropTypes . string ,
157165
158166 /**
159- * CSS class to apply to the backdrop.
167+ * Additional CSS classes to apply to the modal- backdrop.
160168 */
161169 backdrop_class_name : PropTypes . string ,
162170
163171 /**
164- * CSS class to apply to the modal content.
172+ * Additional CSS classes to apply to the modal content.
165173 */
166174 content_class_name : PropTypes . string ,
167175
@@ -209,6 +217,13 @@ Modal.propTypes = {
209217 */
210218 contentStyle : PropTypes . object ,
211219
220+ /**
221+ * **DEPRECATED** Use `content_style` instead.
222+ *
223+ * Inline CSS styles to apply to the backdrop
224+ */
225+ backdropStyle : PropTypes . object ,
226+
212227 /**
213228 * **DEPRECATED** Use `class_name` instead.
214229 *
@@ -219,23 +234,23 @@ Modal.propTypes = {
219234 /**
220235 * **DEPRECATED** Use `backdrop_class_name` instead
221236 *
222- * CSS class to apply to the backdrop.
237+ * Additional CSS classes to apply to the modal- backdrop.
223238 */
224239 backdropClassName : PropTypes . string ,
225240
226241 /**
227242 * **DEPRECATED** Use `content_class_name` instead
228243 *
229- * CSS class to apply to the modal content.
244+ * Additional CSS classes to apply to the modal- content.
230245 */
231246 contentClassName : PropTypes . string ,
232247
233248 /**
234- * **DEPRECATED** Use `modal_class_name ` instead
249+ * **DEPRECATED** Use `dialog_class_name ` instead
235250 *
236- * CSS class to apply to the modal.
251+ * Additional CSS classes to apply to the modal-dialog .
237252 */
238- modalClassName : PropTypes . string ,
253+ dialogClassName : PropTypes . string ,
239254
240255 /**
241256 * **DEPRECATED** Use `autofocus` instead
0 commit comments