Skip to content

LG-5040 refactor text field#5468

Merged
mdiarra3 merged 24 commits intomainfrom
md-lg-5040-refactor-text-field
Oct 18, 2021
Merged

LG-5040 refactor text field#5468
mdiarra3 merged 24 commits intomainfrom
md-lg-5040-refactor-text-field

Conversation

@mdiarra3
Copy link
Contributor

@mdiarra3 mdiarra3 commented Oct 1, 2021

Why?

Current way that we implement this we leverage the default tooltip for users. This will allow the errors to be listed properly for required inputs directly below.

Screen Shot 2021-10-01 at 12 10 52 PM
Screen Shot 2021-10-01 at 12 11 01 PM

@mdiarra3 mdiarra3 changed the title WIP: LG-5040 refactor text field LG-5040 refactor text field Oct 5, 2021
@mdiarra3 mdiarra3 requested a review from jmdembe October 5, 2021 15:03
@mdiarra3 mdiarra3 added javascript Pull requests that update Javascript code needs code review and removed status - work in progress labels Oct 5, 2021
Copy link
Contributor

@aduth aduth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like there's a failing test that needs to be updated. Are we still expecting the notice banner to be visible with the JavaScript validation? If not, we could update the test to look for the field message instead for when JavaScript is enabled?

Copy link
Contributor

@aduth aduth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great 👍

@mdiarra3 mdiarra3 merged commit 4e40340 into main Oct 18, 2021
@mdiarra3 mdiarra3 deleted the md-lg-5040-refactor-text-field branch October 18, 2021 17:00
aduth added a commit that referenced this pull request Nov 23, 2021
**Why**: It is now handled by adjacent inline text element as of #5468
aduth added a commit that referenced this pull request Nov 23, 2021
* Form Validation: Limit custom validation reset to own validation

**Why**: To avoid conflicts between form-validation custom validation and other custom validation which may apply to an input (e.g. a component implementation).

* Render phone forms as validated form

**Why**: Consistency of form rendering and validation (e.g. required field messaging)

* Remove unused SSN pattern type matching

**Why**: It is now handled by adjacent inline text element as of #5468
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

javascript Pull requests that update Javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants