-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Enable boostrap form validation styling for angular control states
Added SCSS to apply bootstrap form validation styling for form controls.
- Loading branch information
Showing
13 changed files
with
134 additions
and
17 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
1 change: 0 additions & 1 deletion
1
src/app/core/feedback/feedback-flyout/feedback-flyout.component.scss
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
1 change: 0 additions & 1 deletion
1
src/app/core/messages/recent-messages/recent-messages.component.scss
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,60 @@ | ||
@import 'bootstrap/shared'; | ||
|
||
@import '../../node_modules/bootstrap/scss/bootstrap'; | ||
|
||
/** | ||
* _bootstrap.scss | ||
* This file is globally included in the Angular application. | ||
* All bootstrap theme styles should be included in this file. | ||
*/ | ||
|
||
//@import '../../node_modules/bootstrap/scss/bootstrap'; | ||
|
||
@import "bootstrap/shared"; | ||
|
||
// Layout & components | ||
/** | ||
* Individual components can be removed below to help reduce | ||
* bundle size if not being used. | ||
*/ | ||
@import "../../node_modules/bootstrap/scss/root"; | ||
@import "../../node_modules/bootstrap/scss/reboot"; | ||
@import "../../node_modules/bootstrap/scss/type"; | ||
@import "../../node_modules/bootstrap/scss/images"; | ||
@import "../../node_modules/bootstrap/scss/containers"; | ||
@import "../../node_modules/bootstrap/scss/grid"; | ||
@import "../../node_modules/bootstrap/scss/tables"; | ||
@import "../../node_modules/bootstrap/scss/forms"; | ||
@import "../../node_modules/bootstrap/scss/buttons"; | ||
@import "../../node_modules/bootstrap/scss/transitions"; | ||
@import "../../node_modules/bootstrap/scss/dropdown"; | ||
@import "../../node_modules/bootstrap/scss/button-group"; | ||
@import "../../node_modules/bootstrap/scss/nav"; | ||
@import "../../node_modules/bootstrap/scss/navbar"; | ||
@import "../../node_modules/bootstrap/scss/card"; | ||
@import "../../node_modules/bootstrap/scss/accordion"; | ||
@import "../../node_modules/bootstrap/scss/breadcrumb"; | ||
@import "../../node_modules/bootstrap/scss/pagination"; | ||
@import "../../node_modules/bootstrap/scss/badge"; | ||
@import "../../node_modules/bootstrap/scss/alert"; | ||
@import "../../node_modules/bootstrap/scss/progress"; | ||
@import "../../node_modules/bootstrap/scss/list-group"; | ||
@import "../../node_modules/bootstrap/scss/close"; | ||
@import "../../node_modules/bootstrap/scss/toasts"; | ||
@import "../../node_modules/bootstrap/scss/modal"; | ||
@import "../../node_modules/bootstrap/scss/tooltip"; | ||
@import "../../node_modules/bootstrap/scss/popover"; | ||
@import "../../node_modules/bootstrap/scss/carousel"; | ||
@import "../../node_modules/bootstrap/scss/spinners"; | ||
@import "../../node_modules/bootstrap/scss/offcanvas"; | ||
@import "../../node_modules/bootstrap/scss/placeholders"; | ||
|
||
// Helpers | ||
@import "../../node_modules/bootstrap/scss/helpers"; | ||
|
||
// Utilities | ||
@import "../../node_modules/bootstrap/scss/utilities/api"; | ||
|
||
// Additional styles | ||
@import 'bootstrap/buttons'; | ||
@import 'bootstrap/cards'; | ||
@import 'bootstrap/dropdowns'; | ||
@import 'bootstrap/forms'; | ||
@import 'bootstrap/grid'; | ||
@import 'bootstrap/nav'; | ||
@import 'bootstrap/tables'; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
@use 'sass:math'; | ||
@import 'shared'; | ||
|
||
// Submit Button | ||
$btn-submit-style: spinner !default; | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// Mixins defined here will override mixins of the same name provided by bootstrap | ||
|
||
@mixin form-validation-state-selector($state) { | ||
@if ($state == "valid" or $state == "invalid") { | ||
.was-validated #{if(&, "&", "")}:#{$state}, | ||
#{if(&, "&", "")}.is-#{$state} { | ||
@content; | ||
} | ||
} @else { | ||
#{if(&, "&", "")}.is-#{$state} { | ||
@content; | ||
} | ||
} | ||
// Add bootstrap validation styling based on ng-invalid | ||
@if ($state == "invalid") { | ||
#{if(&, "&", "")}.ng-#{$state}.ng-dirty, | ||
#{if(&, "&", "")}.ng-#{$state}.ng-touched { | ||
@content; | ||
} | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
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,7 +1,13 @@ | ||
// Imports non-rendering bootstrap SASS (i.e. variables, functions, mixins) for easy import into other files. | ||
// Variable overrides must be imported before the variables are defined | ||
@import 'variables_overrides'; | ||
|
||
@import 'variables'; | ||
// Configuration | ||
@import "../../../node_modules/bootstrap/scss/functions"; | ||
@import "../../../node_modules/bootstrap/scss/variables"; | ||
@import "../../../node_modules/bootstrap/scss/variables-dark"; | ||
@import "../../../node_modules/bootstrap/scss/maps"; | ||
@import "../../../node_modules/bootstrap/scss/mixins"; | ||
@import "../../../node_modules/bootstrap/scss/utilities"; | ||
|
||
@import '../../../node_modules/bootstrap/scss/functions'; | ||
@import '../../../node_modules/bootstrap/scss/variables'; | ||
@import '../../../node_modules/bootstrap/scss/mixins'; | ||
// Mixin overrides must be imported before the mixins are used. | ||
@import "mixins_override"; |
File renamed without changes.