We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c54eae4 + 0f0e550 commit d53b6feCopy full SHA for d53b6fe
packages/coreui-vue/src/components/button/CButton.ts
@@ -93,8 +93,9 @@ export const CButton = defineComponent({
93
{
94
class: [
95
'btn',
96
- props.variant && props.color ? `btn-${props.variant}-${props.color}` : `btn-${props.variant}`,
97
+ [`btn-${props.variant}-${props.color}`]: props.color && props.variant,
98
+ [`btn-${props.variant}`]: !props.color && props.variant,
99
[`btn-${props.color}`]: props.color && !props.variant,
100
[`btn-${props.size}`]: props.size,
101
active: props.active,
0 commit comments