From 894c915c3cfd26fae74b1608a19d6e57ca9cd52a Mon Sep 17 00:00:00 2001 From: yerramshilpa <44271677+yerramshilpa@users.noreply.github.com> Date: Wed, 27 Sep 2023 14:08:21 -0400 Subject: [PATCH 1/2] updated input to have a clear icon --- .../src/lib/formly/formly.module.ts | 2 ++ .../sam-formly/src/lib/formly/types/input.ts | 31 ++++++++++--------- 2 files changed, 19 insertions(+), 14 deletions(-) diff --git a/libs/packages/sam-formly/src/lib/formly/formly.module.ts b/libs/packages/sam-formly/src/lib/formly/formly.module.ts index 4e777e6fde..23e6d93d41 100644 --- a/libs/packages/sam-formly/src/lib/formly/formly.module.ts +++ b/libs/packages/sam-formly/src/lib/formly/formly.module.ts @@ -36,6 +36,7 @@ import { chevronDown, infoCircleFill, calendar, + x, } from 'ngx-bootstrap-icons'; import { UsaAccordionModule, UsaFileInputModule } from '@gsa-sam/ngx-uswds'; import { IconModule } from '@gsa-sam/ngx-uswds-icons'; @@ -175,6 +176,7 @@ export const DATE_FORMAT: MatDateFormats = { chevronDown, infoCircleFill, calendar, + x, }), FormlyModule.forChild(FORMLY_CONFIG), FormlyModule.forRoot({ diff --git a/libs/packages/sam-formly/src/lib/formly/types/input.ts b/libs/packages/sam-formly/src/lib/formly/types/input.ts index 55208d69f3..585b92a56b 100755 --- a/libs/packages/sam-formly/src/lib/formly/types/input.ts +++ b/libs/packages/sam-formly/src/lib/formly/types/input.ts @@ -3,19 +3,22 @@ import { FieldType } from '@ngx-formly/core'; @Component({ selector: 'sds-formly-field-input', - template: ` - - `, + template: ` +