summaryrefslogtreecommitdiffstats
path: root/app/common/styles/base/foundation.scss
diff options
context:
space:
mode:
authorbeccabroek <beccabroek@gmail.com>2019-01-23 14:26:55 -0600
committerEd Tanous <ed.tanous@intel.com>2019-02-02 01:09:14 +0000
commita09cc2da1b3a9bad0eaf34fbfdec8a3ee32d47f8 (patch)
tree596738144339961f447244c709d904dc7725f362 /app/common/styles/base/foundation.scss
parent97280b3efde6a19a517096940fd8e68c3c192331 (diff)
downloadphosphor-webui-a09cc2da1b3a9bad0eaf34fbfdec8a3ee32d47f8.tar.gz
phosphor-webui-a09cc2da1b3a9bad0eaf34fbfdec8a3ee32d47f8.zip
Form validation on login page
Using ngMessages, adds form validation to login page. Also creates a directive, hasError, to be used to validate form field by passing in a boolean. This is a proposed pattern to be used moving forward, as form validation is added to additional pages. Validation error messages are shown on $touched and on submit. Unreachable Server and Invalid username and password error messages remain until input is no longer $pristine after form submission. In addition, this removes unneeded and unused css styling Resolves openbmc/phosphor-webui#47 Change-Id: I7a067af67ac74d4cf2977d10f66445720ecae9eb Signed-off-by: beccabroek <beccabroek@gmail.com>
Diffstat (limited to 'app/common/styles/base/foundation.scss')
-rw-r--r--app/common/styles/base/foundation.scss25
1 files changed, 0 insertions, 25 deletions
diff --git a/app/common/styles/base/foundation.scss b/app/common/styles/base/foundation.scss
index f1bcb2f..a422dec 100644
--- a/app/common/styles/base/foundation.scss
+++ b/app/common/styles/base/foundation.scss
@@ -705,31 +705,6 @@ select[multiple] {
height: auto;
background-image: none; }
-.is-invalid-input:not(:focus) {
- border-color: #c60f13;
- background-color: #f8e6e7; }
-.is-invalid-input:not(:focus)::-webkit-input-placeholder {
- color: #c60f13; }
-.is-invalid-input:not(:focus)::-moz-placeholder {
- color: #c60f13; }
-.is-invalid-input:not(:focus):-ms-input-placeholder {
- color: #c60f13; }
-.is-invalid-input:not(:focus)::placeholder {
- color: #c60f13; }
-
-.is-invalid-label {
- color: #c60f13; }
-
-.form-error {
- display: none;
- margin-top: -0.5rem;
- margin-bottom: 1rem;
- font-size: 0.75rem;
- font-weight: bold;
- color: #c60f13; }
-.form-error.is-visible {
- display: block; }
-
.hide {
display: none !important; }
OpenPOWER on IntegriCloud