-
Notifications
You must be signed in to change notification settings - Fork 12
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
FRONT-2476: Form input group created. #73
Conversation
29d510c
to
c49c111
Compare
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.
Some styles missing, for instance form-required has not any special style to mark a field as required, and checkbox left-margin doesn't fit well sometimes.
I'm not sure this must be reviewed now or later in a general form/page theming.
label: Text | ||
description: Default input text. | ||
checkbox: | ||
input_type: checkbox |
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.
Not needed
label: Checkbox | ||
description: Default checkbox input. | ||
file: | ||
input_type: file |
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.
Not needed
] | ||
%} | ||
{% if attributes.placeholder is empty %} | ||
{% set attributes = attributes.setAttribute('placeholder', 'text here') %} |
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.
This default text should be translatable
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.
- the helper text has the correct class, and even though not a div, visually its ok
- valid-feedback and invalid-feedback are handled differently in drupal so we won't touch those
- if validation error is present the message is presented on top in the messages area and the border is collored red as it should be (in netlify its not and that is a mistake I feel)
Jira issue(s):