-
Notifications
You must be signed in to change notification settings - Fork 125
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: update form validation states and messages (#2260)
* feat: update form validation states and messages * add PR review fixes
- Loading branch information
1 parent
9e96c16
commit d7c06dc
Showing
35 changed files
with
119 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
51 changes: 42 additions & 9 deletions
51
...input-group/examples/input-group-states-example/input-group-states-example.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,45 @@ | ||
<label fd-form-label>Information</label> | ||
<fd-input-group [addOnText]="'Button'" [button]="true" [state]="'information'" [placeholder]="'Placeholder'"></fd-input-group> | ||
<div fd-form-item> | ||
<label fd-form-label>Information</label> | ||
<fd-form-input-message-group> | ||
<fd-input-group fd-form-control [addOnText]="'Button'" [button]="true" [state]="'information'" [placeholder]="'Placeholder'"></fd-input-group> | ||
<fd-form-message [type]="'information'"> | ||
Pellentesque metus lacus commodo eget justo ut rutrum varius nunc | ||
</fd-form-message> | ||
</fd-form-input-message-group> | ||
</div> | ||
|
||
<br /> | ||
<label fd-form-label>Success</label> | ||
<fd-input-group [addOnText]="'Button'" [button]="true" [state]="'valid'" [placeholder]="'Placeholder'"></fd-input-group> | ||
|
||
<div fd-form-item> | ||
<label fd-form-label>Success</label> | ||
<fd-form-input-message-group> | ||
<fd-input-group fd-form-control [addOnText]="'Button'" [compact]="true" [button]="true" [state]="'success'" [placeholder]="'Placeholder'"></fd-input-group> | ||
<fd-form-message [type]="'success'"> | ||
Pellentesque metus lacus commodo eget justo ut rutrum varius nunc | ||
</fd-form-message> | ||
</fd-form-input-message-group> | ||
</div> | ||
|
||
<br /> | ||
<label fd-form-label>Warning</label> | ||
<fd-input-group [addOnText]="'Button'" [button]="true" [state]="'warning'" [placeholder]="'Placeholder'"></fd-input-group> | ||
<br /> | ||
<label fd-form-label>Invalid</label> | ||
<fd-input-group [addOnText]="'Button'" [button]="true" [state]="'invalid'" [placeholder]="'Placeholder'"></fd-input-group> | ||
|
||
<div fd-form-item> | ||
<label fd-form-label>Warning</label> | ||
<fd-form-input-message-group> | ||
<fd-input-group fd-form-control [addOnText]="'Button'" [button]="true" [state]="'warning'" [placeholder]="'Placeholder'"></fd-input-group> | ||
<fd-form-message [type]="'warning'"> | ||
Pellentesque metus lacus commodo eget justo ut rutrum varius nunc | ||
</fd-form-message> | ||
</fd-form-input-message-group> | ||
</div> | ||
|
||
<br /> | ||
|
||
<div fd-form-item> | ||
<label fd-form-label>Error</label> | ||
<fd-form-input-message-group> | ||
<fd-input-group fd-form-control [addOnText]="'Button'" [button]="true" [state]="'error'" [placeholder]="'Placeholder'"></fd-input-group> | ||
<fd-form-message [type]="'error'"> | ||
Pellentesque metus lacus commodo eget justo ut rutrum varius nunc | ||
</fd-form-message> | ||
</fd-form-input-message-group> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
...ocs/multi-input/examples/multi-input-form-example/multi-input-form-example.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.