From cd4d0475738644467f94be8231194f570276fda0 Mon Sep 17 00:00:00 2001 From: Shanna Murry Date: Wed, 23 Nov 2022 11:27:33 -0500 Subject: [PATCH] Dang-1761/search input no x when no text (#363) * do not show clear button if there is not a search term * update package * pr feedback changes * update tests for searchBar * remove outdated test * update test to check for disabled --- CHANGELOG.md | 6 +++++ package-lock.json | 4 ++-- package.json | 2 +- src/components/SearchBar/SearchBar.vue | 11 ++++++--- .../SearchBar/__tests__/SearchBar.spec.js | 23 ++++++++++--------- 5 files changed, 29 insertions(+), 17 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 071efb924..3b913699a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # CHANGELOG +## v2.0.0-beta.7 + +### Features + +Do not show clear button in `SearchBar` unless there is a search term + ## v2.0.0-beta.6 ### Features diff --git a/package-lock.json b/package-lock.json index 6d6ae3b0a..e7414cff8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@lob/ui-components", - "version": "2.0.0-beta.6", + "version": "2.0.0-beta.7", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@lob/ui-components", - "version": "2.0.0-beta.6", + "version": "2.0.0-beta.7", "dependencies": { "date-fns": "^2.29.3", "date-fns-holiday-us": "^0.3.1", diff --git a/package.json b/package.json index e104c4478..e1e148b54 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@lob/ui-components", - "version": "2.0.0-beta.6", + "version": "2.0.0-beta.7", "engines": { "node": ">=14.18.2", "npm": ">=8.3.0" diff --git a/src/components/SearchBar/SearchBar.vue b/src/components/SearchBar/SearchBar.vue index 4297cdf6c..b48f204ce 100644 --- a/src/components/SearchBar/SearchBar.vue +++ b/src/components/SearchBar/SearchBar.vue @@ -16,7 +16,10 @@