Skip to content

Commit 9fe451e

Browse files
committed
refactor(CFormCheck): update CSS class names
1 parent ecae07f commit 9fe451e

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

packages/coreui-vue/src/components/form/CFormCheck.ts

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -132,16 +132,14 @@ const CFormCheck = defineComponent({
132132
attrs.class,
133133
]
134134

135-
const inputClassName = props.button
136-
? 'btn-check'
137-
: [
138-
'form-check-input',
139-
{
140-
'is-invalid': props.invalid,
141-
'is-valid': props.valid,
142-
'me-2': props.hitArea,
143-
},
144-
]
135+
const inputClassName = [
136+
props.button ? 'btn-check' : 'form-check-input',
137+
{
138+
'is-invalid': props.invalid,
139+
'is-valid': props.valid,
140+
'me-2': props.hitArea,
141+
},
142+
]
145143

146144
const formControl = () => {
147145
return h('input', {

0 commit comments

Comments
 (0)