We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5f76520 commit 51cf9a9Copy full SHA for 51cf9a9
packages/coreui-vue/src/components/button/CButton.ts
@@ -93,8 +93,9 @@ export const CButton = defineComponent({
93
{
94
class: [
95
'btn',
96
- props.variant ? `btn-${props.variant}-${props.color}` : `btn-${props.color}`,
97
+ [`btn-${props.color}`]: props.color && !props.variant,
98
+ [`btn-${props.variant}-${props.color}`]: props.color && props.variant,
99
[`btn-${props.size}`]: props.size,
100
active: props.active,
101
disabled: props.disabled,
0 commit comments