From f41b6c92bf23bab89bbb50b77105b157ee201337 Mon Sep 17 00:00:00 2001 From: Jeff Reiffers Date: Thu, 21 Sep 2023 11:02:00 +0200 Subject: [PATCH] fix: input tags background and hide labels --- .../field-input-tags/field-input-tags.scss | 3 ++- .../form-concept/internal-info/index.tsx | 25 +++---------------- 2 files changed, 6 insertions(+), 22 deletions(-) diff --git a/src/components/fields/field-input-tags/field-input-tags.scss b/src/components/fields/field-input-tags/field-input-tags.scss index a6e98736..07f3b972 100644 --- a/src/components/fields/field-input-tags/field-input-tags.scss +++ b/src/components/fields/field-input-tags/field-input-tags.scss @@ -1,6 +1,7 @@ .fdk-reg-input-tags { width: 100%; padding: 0.05rem 0; + background: #fff; border: 1px solid #ced4da; transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out; @@ -45,7 +46,7 @@ } .react-tagsinput-input { - background: transparent; + background: #fff; border: 0; margin-top: 1px; outline: none; diff --git a/src/pages/concept-registration-page/form-concept/internal-info/index.tsx b/src/pages/concept-registration-page/form-concept/internal-info/index.tsx index e8d0f62c..4e51ebba 100644 --- a/src/pages/concept-registration-page/form-concept/internal-info/index.tsx +++ b/src/pages/concept-registration-page/form-concept/internal-info/index.tsx @@ -24,8 +24,8 @@ import { selectAllCodeLists } from '../../../../features/code-lists'; import { convertCodeListToTreeNodes } from '../../../../utils/code-list'; -import { InputTagsField } from '../../../../components/fields/field-input-tags/field-input-tags.component'; import { fetchConceptStatuses } from '../../../../features/concept-statuses'; +import { InputTagsField } from '../../../../components/fields/field-input-tags/field-input-tags.component'; interface Props { catalogId: string; @@ -51,12 +51,7 @@ const renderInternalField = ( return ( <> - + ); } @@ -227,9 +222,7 @@ export const InternalInfo: FC = ({ catalogId, errors }) => { ({ label: item.name, value: item.id @@ -242,24 +235,14 @@ export const InternalInfo: FC = ({ catalogId, errors }) => { title={localization.abbreviationTitle} helpTextAbstract={localization.abbreviationAbstract} /> - + - + {catalogFields?.internal?.map(field => (