Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/components/modal/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -407,8 +407,8 @@ export default {
<!-- modal-variant-1.vue -->
```

You can also apply abritrary classes to the modal container, header, body and footer via the
`modal-class`, `header-class`, `body-class` and `footer-class` props, respectively. The props
You can also apply abritrary classes to the modal dialog container, content (modal window itself), header, body and footer via the
`modal-class`, `content-class`, `header-class`, `body-class` and `footer-class` props, respectively. The props
accept either a string or array of strings.

## Lazy loading
Expand Down
12 changes: 11 additions & 1 deletion src/components/modal/modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ export default {
'div',
{
ref: 'content',
class: ['modal-content'],
class: this.contentClasses,
attrs: {
tabindex: '-1',
role: 'document',
Expand Down Expand Up @@ -323,6 +323,10 @@ export default {
type: [String, Array],
default: null
},
contentClass: {
type: [String, Array],
default: null
},
bodyClass: {
type: [String, Array],
default: null
Expand Down Expand Up @@ -408,6 +412,12 @@ export default {
}
},
computed: {
contentClasses () {
return [
'modal-content',
this.contentClass
]
},
modalClasses () {
return [
'modal',
Expand Down