-
Notifications
You must be signed in to change notification settings - Fork 95
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
A validation improved (solid red lines around the text fields in all … #1133
A validation improved (solid red lines around the text fields in all … #1133
Conversation
…validated and failed cases). In addition, WCAG 2.1 AA level related global style definition for HTML label tag now applies only to feedback form
Codecov Report
@@ Coverage Diff @@
## master #1133 +/- ##
============================================
+ Coverage 60.30% 64.37% +4.06%
- Complexity 1602 1670 +68
============================================
Files 32 32
Lines 4439 4752 +313
============================================
+ Hits 2677 3059 +382
+ Misses 1762 1693 -69
Continue to review full report at Codecov.
|
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 tested this locally and it looks like this when I try to submit an empty form:
Comments/requests:
- The color is now red. I suggest using the pinkish color Skosmos already uses to signal deprecated concepts (see specific comment on CSS file)
- The form has the text
* Value is required and can not be empty
at the bottom, but there are no asterisks next to the Subject and Message fields (or anywhere!). Could you please add asterisks after the labels to mark the required fields? - The default text "Write a subject" in the subject field looks the same as normal text entered into the field. This is a bit confusing, especially since the field will be considered empty for validation purposes even if the default text is there (see screenshot above). Could you please adjust the color/style of the default text so that it doesn't look like regular text, for example by making it a lighter shade?
I noticed that Bootstrap 3 (which Skosmos still uses) has special CSS classes for validation states and we could consider using them instead of a custom CSS class as is done here, but in practice, this would probably be more trouble than it's worth, as we would then have to override much of the Bootstrap styling anyway.
…border: 2px solid #D95F8A }. Contrast tests for text box with new border style passed (https://contrastchecker.com/). In the feedback form asterisk symbols added for required fields (subject and message)
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.
…ighter; and font-style: italic;
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
A validation improved (solid red lines around the text fields in all validated and failed cases). In addition, WCAG 2.1 AA level related global style definition for HTML label tag now applies only to feedback form