Skip to content

Commit 34ae267

Browse files
jacobmllr95tmorehouse
authored andcommitted
feat(modal): Add dialogClass prop (#2465)
1 parent c5d858f commit 34ae267

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

src/components/modal/modal.js

+11-4
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,10 @@ export default {
158158
type: [String, Array],
159159
default: null
160160
},
161+
dialogClass: {
162+
type: [String, Array],
163+
default: null
164+
},
161165
contentClass: {
162166
type: [String, Array],
163167
default: null
@@ -278,10 +282,13 @@ export default {
278282
]
279283
},
280284
dialogClasses() {
281-
return {
282-
[`modal-${this.size}`]: Boolean(this.size),
283-
'modal-dialog-centered': this.centered
284-
}
285+
return [
286+
{
287+
[`modal-${this.size}`]: Boolean(this.size),
288+
'modal-dialog-centered': this.centered
289+
},
290+
this.dialogClass
291+
]
285292
},
286293
backdropClasses() {
287294
return {

0 commit comments

Comments
 (0)