-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(components/forms): form error new pattern #1955
Closed
Closed
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
a5fbbf9
add label text input
Blackbaud-ErikaMcVey 987412a
Merge branch 'main' into colorpicker-easy-mode
Blackbaud-ErikaMcVey a9fed3c
checkbox fixes
Blackbaud-ErikaMcVey 169dd47
add form errors to colorpicker
Blackbaud-ErikaMcVey 2e83033
form erorrs token, form error errorType, misc
Blackbaud-ErikaMcVey 237f38f
Merge branch 'main' into colorpicker-easy-mode
Blackbaud-ErikaMcVey e02a191
add checkbox stuff back
Blackbaud-ErikaMcVey 0a3b5b3
formatting fixes
Blackbaud-ErikaMcVey b549a74
colorpicker error tests, clean up
Blackbaud-ErikaMcVey 34fabe4
input custom error ngcontent and form error harness
Blackbaud-SandhyaRajasabeson 936d7a2
input box test harness
Blackbaud-SandhyaRajasabeson 79ad69e
checkbox harness updates
Blackbaud-ErikaMcVey 850c071
colorpicker code example
Blackbaud-ErikaMcVey d51a02f
formatting
Blackbaud-ErikaMcVey 0899ea1
remove character count and unit tests up till timepicker
Blackbaud-SandhyaRajasabeson 25bfc15
directive unit tests
Blackbaud-SandhyaRajasabeson 1a39bd6
Merge branch '9.x.x' into colorpicker-easy-mode
Blackbaud-ErikaMcVey 9684956
inmput box demo unit test
Blackbaud-SandhyaRajasabeson 3cc32a1
checkbox ngcontrol non protected
Blackbaud-SandhyaRajasabeson 073e465
clean up, add test
Blackbaud-ErikaMcVey 8c0a4fd
cleanup
Blackbaud-SandhyaRajasabeson c0d0a68
documentation
Blackbaud-SandhyaRajasabeson 1e2b68e
pull colorpicker input updates into service
Blackbaud-ErikaMcVey fc228b9
Merge branch '9.x.x' into colorpicker-easy-mode
Blackbaud-ErikaMcVey File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
20 changes: 11 additions & 9 deletions
20
apps/code-examples/src/app/code-examples/forms/checkbox/basic/demo.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,22 +1,24 @@ | ||
<form [formGroup]="formGroup" (ngSubmit)="onSubmit()"> | ||
<label class="sky-control-label"> Contact method </label> | ||
<div class="sky-margin-stacked-xl"> | ||
<ul class="sky-list-unstyled"> | ||
<li> | ||
<sky-checkbox formControlName="email"> | ||
<sky-checkbox-label> Email </sky-checkbox-label> | ||
</sky-checkbox> | ||
<sky-checkbox formControlName="email" labelText="Email" /> | ||
</li> | ||
<li> | ||
<sky-checkbox formControlName="phone"> | ||
<sky-checkbox-label> Phone </sky-checkbox-label> | ||
</sky-checkbox> | ||
<sky-checkbox formControlName="phone" labelText="Phone" /> | ||
</li> | ||
<li> | ||
<sky-checkbox formControlName="text"> | ||
<sky-checkbox-label> Text </sky-checkbox-label> | ||
</sky-checkbox> | ||
<sky-checkbox formControlName="text" labelText="Text" /> | ||
</li> | ||
</ul> | ||
</div> | ||
<div> | ||
<sky-checkbox | ||
formControlName="terms" | ||
[required]="true" | ||
labelText="I agree to the terms and conditions" | ||
/> | ||
</div> | ||
<button class="sky-btn sky-btn-primary" type="submit">Submit</button> | ||
</form> |
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
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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should just remove the custom error above this one--we'll probably get rid of that way eventually, and all other components will just use sky-form-error