From 0989f8e681462fb48d4a13b81d85f00152803c06 Mon Sep 17 00:00:00 2001 From: Valentin Jonovs Date: Tue, 8 Oct 2019 11:58:35 +0200 Subject: [PATCH] fix: Prevent text highlighting overlap between chips (#188) --- .../strategy-input-list-test.jsx.snap | 75 ++++++++++++------- .../feature/form/strategy-input-list.jsx | 21 +++--- 2 files changed, 61 insertions(+), 35 deletions(-) diff --git a/frontend/src/component/feature/form/__tests__/__snapshots__/strategy-input-list-test.jsx.snap b/frontend/src/component/feature/form/__tests__/__snapshots__/strategy-input-list-test.jsx.snap index 5cf83c499b..97275c51d9 100644 --- a/frontend/src/component/feature/form/__tests__/__snapshots__/strategy-input-list-test.jsx.snap +++ b/frontend/src/component/feature/form/__tests__/__snapshots__/strategy-input-list-test.jsx.snap @@ -5,24 +5,32 @@ exports[`renders correctly when disabled 1`] = `

featureName

- - item1 - - - item2 - + > + item1 + + + item2 + + `; @@ -32,6 +40,13 @@ exports[`renders strategy with empty list as param 1`] = `

featureName

+
featureName

- - item1 - - - item2 - + > + item1 + + + item2 + +

{name}

- {list.map((entryValue, index) => ( - this.onClose(index)} - > - {entryValue} - - ))} + +
+ {list.map((entryValue, index) => ( + this.onClose(index)} + > + {entryValue} + + ))} +
{disabled ? ( ''