feat: allow dashed labels

This commit is contained in:
Shivam Mishra
2023-07-10 15:01:50 +05:30
parent a940f4c1d2
commit eb09ac6706
@@ -65,6 +65,10 @@ export default {
type: String,
default: '',
},
dashed: {
type: Boolean,
default: false,
},
},
computed: {
textColor() {
@@ -74,7 +78,7 @@ export default {
labelClass() {
return `label ${this.colorScheme} ${this.variant} ${
this.small ? 'small' : ''
}`;
} ${this.dashed ? 'dashed' : ''}`;
},
labelStyle() {
if (this.bgColor) {
@@ -199,9 +203,16 @@ export default {
&.smooth {
background: transparent;
border: 1px solid var(--s-100);
color: var(--s-700);
}
&.smooth:not(.dashed) {
border: 1px solid var(--s-100);
}
&.dashed {
border: 1px dashed var(--s-100);
}
}
.label-close--button {