Skip to content

Commit 414e6dd

Browse files
authored
feat(table) Add content-class prop (bootstrap-vue#1961)
solves bootstrap-vue#1950
1 parent 5933955 commit 414e6dd

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-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 container, header, body and footer via the
411-
`modal-class`, `header-class`, `body-class` and `footer-class` props, respectively. The props
410+
You can also apply abritrary classes to the modal dialog container, content (modal window itself), header, body and footer via the
411+
`modal-class`, `content-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: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ export default {
152152
'div',
153153
{
154154
ref: 'content',
155-
class: ['modal-content'],
155+
class: this.contentClasses,
156156
attrs: {
157157
tabindex: '-1',
158158
role: 'document',
@@ -323,6 +323,10 @@ export default {
323323
type: [String, Array],
324324
default: null
325325
},
326+
contentClass: {
327+
type: [String, Array],
328+
default: null
329+
},
326330
bodyClass: {
327331
type: [String, Array],
328332
default: null
@@ -408,6 +412,12 @@ export default {
408412
}
409413
},
410414
computed: {
415+
contentClasses () {
416+
return [
417+
'modal-content',
418+
this.contentClass
419+
]
420+
},
411421
modalClasses () {
412422
return [
413423
'modal',

0 commit comments

Comments
 (0)