Skip to content

Commit c7a10ef

Browse files
RomeroMskpi0
authored andcommitted
feat(modal): add modalClass property to bModal (bootstrap-vue#1682)
1 parent 77244da commit c7a10ef

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

src/components/modal/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -407,8 +407,8 @@ export default {
407407
<!-- modal-variant-1.vue -->
408408
```
409409

410-
You can also apply abritrary classes to the modal header, body and footer via the
411-
`header-class`, `body-class` and `footer-class` props, respectively. The props
410+
You can also apply abritrary classes to the modal container, header, body and footer via the
411+
`modal-class`, `header-class`, `body-class` and `footer-class` props, respectively. The props
412412
accept either a string or array of strings.
413413

414414
## Lazy loading

src/components/modal/modal.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,10 @@ export default {
320320
type: String,
321321
default: null
322322
},
323+
modalClass: {
324+
type: [String, Array],
325+
default: null
326+
},
323327
bodyClass: {
324328
type: [String, Array],
325329
default: null
@@ -412,7 +416,8 @@ export default {
412416
fade: !this.noFade,
413417
show: this.is_show,
414418
'd-block': this.is_block
415-
}
419+
},
420+
this.modalClass
416421
]
417422
},
418423
dialogClasses () {

0 commit comments

Comments
 (0)