diff --git a/packages/components/Molecules/Form/formAlert.vue b/packages/components/Molecules/Form/formAlert.vue index b669ac9d5..39fa9285f 100644 --- a/packages/components/Molecules/Form/formAlert.vue +++ b/packages/components/Molecules/Form/formAlert.vue @@ -26,21 +26,25 @@ export default { return this.getValues().color }, classes () { - return [ 'rpl-form-alert--' + this.variant ] + const suffix = this.getValues().classSuffix + return suffix ? 'rpl-form-alert--' + this.getValues().classSuffix : null } }, methods: { getValues () { - let icon, color + let icon, color, classSuffix switch (this.variant) { case 'success': icon = 'success' color = 'success' + classSuffix = 'success' break + case 'error': case 'danger': icon = 'alert_information' color = 'danger' + classSuffix = 'danger' break default: @@ -49,7 +53,8 @@ export default { } return { icon, - color + color, + classSuffix } } } diff --git a/packages/components/Molecules/Form/index.vue b/packages/components/Molecules/Form/index.vue index 745a6fb2d..9bd06bd78 100644 --- a/packages/components/Molecules/Form/index.vue +++ b/packages/components/Molecules/Form/index.vue @@ -1,7 +1,8 @@