@appscode/design-system 2.6.15 → 2.6.16-alpha2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appscode/design-system",
3
- "version": "2.6.15",
3
+ "version": "2.6.16-alpha2",
4
4
  "description": "A design system for Appscode websites and dashboards made using Bulma",
5
5
  "main": "main.scss",
6
6
  "scripts": {
@@ -473,7 +473,7 @@ button {
473
473
  }
474
474
 
475
475
  &.is-danger {
476
- background-color: $danger;
476
+ background-color: $danger !important;
477
477
  }
478
478
  }
479
479
 
@@ -56,7 +56,7 @@
56
56
  // overflow: hidden;
57
57
  // transition: max-height 0.3s ease-in-out;
58
58
 
59
- p {
59
+ p:not(.is-danger) {
60
60
  font-size: 1rem;
61
61
  color: $color-text;
62
62
  line-height: 1.6;
@@ -26,6 +26,7 @@ interface Props {
26
26
  openDirection?: "top" | "bottom";
27
27
  groupLabel?: string;
28
28
  groupValues?: string;
29
+ htmlErrorMsg?: boolean;
29
30
  groupSelect?: boolean;
30
31
  onTagAdd?: Function;
31
32
  }
@@ -51,6 +52,7 @@ const props = withDefaults(defineProps<Props>(), {
51
52
  groupLabel: "",
52
53
  groupValues: "",
53
54
  groupSelect: false,
55
+ htmlErrorMsg: false,
54
56
  taggable: false,
55
57
  tagPlaceholder: "",
56
58
  onTagAdd: () => "",
@@ -170,7 +172,8 @@ const onSelect = (selectedOption: unknown, id: string) => emit("select", selecte
170
172
  <slot name="option" v-bind="props" />
171
173
  </template>
172
174
  </multiselect>
173
- <p v-show="errorMsg" class="is-danger">
175
+ <div v-if="htmlErrorMsg" class="invalid-error is-danger" v-html="errorMsg" />
176
+ <p v-else v-show="errorMsg" class="is-danger">
174
177
  {{ errorMsg }}
175
178
  </p>
176
179
  </div>