inherit styles

This commit is contained in:
Mutasem 2021-07-08 19:44:13 +02:00
parent e1b49d8c70
commit 4966004db1

View file

@ -4,14 +4,14 @@
v-if="props.type === 'danger'" v-if="props.type === 'danger'"
type="danger" type="danger"
size="small" size="small"
:class="`${$style['danger']} ${$style['badge']}`" :class="$style['danger']"
> >
{{ props.text }} {{ props.text }}
</el-tag> </el-tag>
<el-tag <el-tag
v-else-if="props.type === 'warning'" v-else-if="props.type === 'warning'"
size="small" size="small"
:class="`${$style['warning']} ${$style['badge']}`" :class="$style['warning']"
> >
{{ props.text }} {{ props.text }}
</el-tag> </el-tag>
@ -36,12 +36,14 @@ export default {
} }
.danger { .danger {
composes: badge;
color: $--version-card-security-badge-color; color: $--version-card-security-badge-color;
background-color: $--version-card-security-badge-background-color; background-color: $--version-card-security-badge-background-color;
border-color: $--version-card-security-badge-border-color; border-color: $--version-card-security-badge-border-color;
} }
.warning { .warning {
composes: badge;
background-color: $--version-card-breaking-change-background-color; background-color: $--version-card-breaking-change-background-color;
color: $--version-card-breaking-change-color; color: $--version-card-breaking-change-color;
border: none; border: none;