Skip to content

Commit ce4516f

Browse files
committed
refactor(CModal): change className property to contentClassName
1 parent 270bac7 commit ce4516f

File tree

1 file changed

+2
-3
lines changed
  • packages/coreui-vue/src/components/modal

1 file changed

+2
-3
lines changed

packages/coreui-vue/src/components/modal/CModal.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,8 @@ const CModal = defineComponent({
2929
},
3030
/**
3131
* A string of all className you want applied to the modal content component.
32-
* TODO: Consider if we should change this prop name to describe better its role.
3332
*/
34-
className: {
33+
contentClassName: {
3534
type: String,
3635
default: undefined,
3736
required: false,
@@ -226,7 +225,7 @@ const CModal = defineComponent({
226225
},
227226
h(
228227
'div',
229-
{ class: ['modal-content', props.className], ref: modalContentRef },
228+
{ class: ['modal-content', props.contentClassName], ref: modalContentRef },
230229
slots.default && slots.default(),
231230
),
232231
),

0 commit comments

Comments
 (0)