From dfb3ff38b9e579c8cc6e3fa73a0ef0854350c7f4 Mon Sep 17 00:00:00 2001 From: bmauger Date: Mon, 3 Jan 2022 13:18:37 -0500 Subject: [PATCH] CSR-241 Remove errorMessage, isError, hasError references. --- src/layouts/component-test/component-test.vue | 20 ------------------- .../list-button-horizontal.spec.js | 1 - .../list-button-horizontal.vue | 11 ---------- .../list-button/list-button.spec.js | 1 - src/ux-components/list-button/list-button.vue | 1 - src/ux-components/list-card/list-card.vue | 12 ++++------- 6 files changed, 4 insertions(+), 42 deletions(-) diff --git a/src/layouts/component-test/component-test.vue b/src/layouts/component-test/component-test.vue index bbbf589f7..e0fb3d70d 100644 --- a/src/layouts/component-test/component-test.vue +++ b/src/layouts/component-test/component-test.vue @@ -185,24 +185,6 @@ -
-
-
With error
-
- Radio button with error state - -
-
-

List Button - Single-Line

@@ -227,8 +209,6 @@ loaderPosition="right" sizeInRem="1" screenReaderOnlyText=" opens new window" - hasError - errorMessage="Error" /> { loaderColor: "blue", loaderPosition: "right", sizeInRem: "1.5", - errorMessage: "null", }, }); diff --git a/src/ux-components/list-button-horizontal/list-button-horizontal.vue b/src/ux-components/list-button-horizontal/list-button-horizontal.vue index 7721917c2..7b32d1e75 100644 --- a/src/ux-components/list-button-horizontal/list-button-horizontal.vue +++ b/src/ux-components/list-button-horizontal/list-button-horizontal.vue @@ -8,7 +8,6 @@ {{buttonLabelSubCopy}} {{screenReaderOnlyText}} -

{{errorMessage}}

@@ -18,7 +17,6 @@ {{screenReaderOnlyText}} -

{{ errorMessage }}

@@ -33,7 +31,6 @@ export default { buttonLabelSubCopy: String, /* Optional, used for multi-line buttons */ screenReaderOnlyText: String, /* Optional, copy to be read by screenreader */ textPosition: String, /* Optional, use Bootstrap classes: text-start, text-center, text-end. Default (empty) is text-start */ - errorMessage: String, /* Optional, if there is an error message to be displayed */ loaderColor: String, /* Specify color of loader/spinner. Options are blue, red, green, white, black. Default is blue */ loaderPosition: String, /* Specify horizontal position of loader/spinner. Options are center, right, left */ sizeInRem: [Number,String], /* Specify size of loader/spinner in rem. Example: 1.5 (equals 24px (16x1.5)) */ @@ -42,7 +39,6 @@ export default { }, data() { return { - isError: false, isLoaderDisplayed: false, }; }, @@ -102,13 +98,6 @@ export default { + p { display: none; } - &.error { - border: 1px solid $danger; - + p { - display: flex; - color: $danger; - } - } &.first-item { border-bottom-left-radius: 0.5rem; border-top-left-radius: 0.5rem; diff --git a/src/ux-components/list-button/list-button.spec.js b/src/ux-components/list-button/list-button.spec.js index 61f1e7ed9..06c96d1a3 100644 --- a/src/ux-components/list-button/list-button.spec.js +++ b/src/ux-components/list-button/list-button.spec.js @@ -11,7 +11,6 @@ describe("list-button.vue", () => { loaderColor: "blue", loaderPosition: "right", sizeInRem: "1.5", - errorMessage: "null", }, }); diff --git a/src/ux-components/list-button/list-button.vue b/src/ux-components/list-button/list-button.vue index 0547f0787..f1848e8d1 100644 --- a/src/ux-components/list-button/list-button.vue +++ b/src/ux-components/list-button/list-button.vue @@ -31,7 +31,6 @@ export default { screenReaderOnlyText: String, /* Optional, copy to be read by screenreader */ buttonLabelSubCopy: String, /* Optional, used for multi-line buttons */ textPosition: String, /* Optional, use Bootstrap classes: text-start, text-center, text-end. Default (empty) is text-start */ - errorMessage: String, /* Optional, if there is an error message to be displayed */ loaderColor: String, /* Specify color of loader/spinner. Options are blue, red, green, white, black. Default is blue */ loaderPosition: String, /* Specify horizontal position of loader/spinner. Options are center, right, left */ sizeInRem: [Number,String], /* Specify size of loader/spinner in rem. Example: 1.5 (equals 24px (16x1.5)) */ diff --git a/src/ux-components/list-card/list-card.vue b/src/ux-components/list-card/list-card.vue index 71bf0a83e..177d43e90 100644 --- a/src/ux-components/list-card/list-card.vue +++ b/src/ux-components/list-card/list-card.vue @@ -1,6 +1,6 @@