Skip to content

Commit

Permalink
fix(Modal): missing className prop
Browse files Browse the repository at this point in the history
  • Loading branch information
xidedix committed Nov 4, 2020
1 parent 903003f commit 7bbc5fd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/modal/CModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ const CModal = props => {
onClosed,
addContentClass,
onClose,
className,
...attributes
} = props

Expand Down Expand Up @@ -66,7 +67,8 @@ const CModal = props => {
const modalClasses = classNames(
'modal overflow-auto fade', {
[`modal-${color}`]: color
}
},
className
)

const dialogClasses = classNames(
Expand Down
2 changes: 1 addition & 1 deletion src/modal/tests/__snapshots__/CModal.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ exports[`CModal renders customized wrapper correctly 1`] = `
onClick={[Function]}
>
<div
className="modal overflow-auto fade modal-warning d-block"
className="modal overflow-auto fade modal-warning class-name d-block"
data-modal={true}
role="dialog"
tabIndex="-1"
Expand Down

0 comments on commit 7bbc5fd

Please sign in to comment.