Skip to content

Commit 4c29500

Browse files
committed
chore: CBadge: delete doubled classes
1 parent 603af02 commit 4c29500

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/components/badge/CBadge.vue

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,7 @@ export default {
2828
staticClass: 'badge',
2929
class: {
3030
[`badge-${props.color}`]: props.color,
31-
'badge-pill': props.shape === 'pill',
32-
'active': props.active,
33-
'disabled': props.disabled
31+
'badge-pill': props.shape === 'pill'
3432
},
3533
props
3634
}

src/components/badge/tests/__snapshots__/CBadge.spec.js.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ exports[`CBadge .vue renders correctly 1`] = `
99
exports[`CBadge .vue renders correctly with slot 1`] = `
1010
<a
1111
aria-disabled="true"
12-
class="badge disabled active badge-success badge-pill active disabled"
12+
class="badge disabled active badge-success badge-pill"
1313
href="someLink"
1414
tabindex="-1"
1515
target="_self"

0 commit comments

Comments
 (0)