|
7 | 7 | {% endif %} |
8 | 8 |
|
9 | 9 | {# * |
10 | | -* While we could add the usa-form-group--error class to <form class="usa-form"> elements, we should |
| 10 | +* While we could add the usa-form-group--error class to <form class="usa-form"> elements, we should |
11 | 11 | * avoid doing this and only add it to usa-form-group elements. |
12 | 12 | * |
13 | | -* Setting the error on the form element would add the error class to the entire form and not just |
| 13 | +* Setting the error on the form element would add the error class to the entire form and not just |
14 | 14 | * the form question that holds the error. |
15 | 15 | *#} |
16 | 16 | <form class="usa-form"> |
|
34 | 34 |
|
35 | 35 |
|
36 | 36 | {# * |
37 | | -* usa-legend and usa-label output the same base styles. Because of this, we can add the |
| 37 | +* usa-legend and usa-label output the same base styles. Because of this, we can add the |
38 | 38 | * usa-label--error class without any additional changes or unexpected style conflicts. |
39 | 39 | *#} |
40 | 40 | <div class="usa-form-group {% if error_state == true %}usa-form-group--error{% endif %}"> |
|
73 | 73 | </div> |
74 | 74 |
|
75 | 75 | {# * |
76 | | -* In order for the red border to highlight the form input with an error, the elements must be |
| 76 | +* In order for the red border to highlight the form input with an error, the elements must be |
77 | 77 | * nested within a div with the usa-form-group and usa-form-group--error classes. |
78 | 78 | *#} |
79 | 79 | <div class="usa-form-group {% if error_state == true %}usa-form-group--error{% endif %}"> |
|
111 | 111 | </fieldset> |
112 | 112 | </div> |
113 | 113 |
|
114 | | -{# ! |
115 | | -! Adding the usa-input--error class to the combo box nested select element does not carry the class over to |
116 | | -! its dynamically placed input element. The class remains on the hidden select element. This is true for time picker's |
| 114 | +{# ! |
| 115 | +! Adding the usa-input--error class to the combo box nested select element does not carry the class over to |
| 116 | +! its dynamically placed input element. The class remains on the hidden select element. This is true for time picker's |
117 | 117 | ! combo box element as well. |
118 | 118 | !#} |
119 | 119 | <div class="usa-form-group {% if error_state == true %}usa-form-group--error{% endif %}"> |
|
167 | 167 | /> |
168 | 168 | </div> |
169 | 169 |
|
170 | | -{# ! |
| 170 | +{# ! |
171 | 171 | ! Input mask breaks due to DOM structure changing. Related to: #5517. |
172 | 172 | ! |
173 | | -! This initialization error also causes subsequent JS files to not initialize properly. |
174 | | -! On this page, time picker does not initialize. Removing input-mask or the error states will allow time |
| 173 | +! This initialization error also causes subsequent JS files to not initialize properly. |
| 174 | +! On this page, time picker does not initialize. Removing input-mask or the error states will allow time |
175 | 175 | ! picker to properly initialize. |
176 | 176 | !#} |
177 | 177 | <form class="usa-form"> |
|
193 | 193 | {% if error_state == true %}</div>{% endif %} |
194 | 194 | </form> |
195 | 195 |
|
196 | | -{# * |
| 196 | +{# * |
197 | 197 | * Input prefix/suffix input group |
198 | | -* For input prefix/suffix, the usa-input--error class must be put on the usa-input-group element in order for |
| 198 | +* For input prefix/suffix, the usa-input--error class must be put on the usa-input-group element in order for |
199 | 199 | * the styles to display as expected |
200 | 200 | *#} |
201 | 201 | <form class="usa-form"> |
|
359 | 359 | </div> |
360 | 360 |
|
361 | 361 | {# ! |
362 | | -! Due to Combo box's dynamic input element not receiving the same classes as it's select placeholder, |
| 362 | +! Due to Combo box's dynamic input element not receiving the same classes as it's select placeholder, |
363 | 363 | ! the error input classes are not set on initialization |
364 | 364 | !#} |
365 | 365 | <div class="usa-form-group {% if error_state == true %}usa-form-group--error{% endif %}"> |
366 | 366 | <label class="usa-label {% if error_state == true %}usa-label--error{% endif %}" id="appointment-time-label" for="appointment-time" |
367 | 367 | >Time picker</label |
368 | 368 | > |
369 | | - <div class="usa-hint" id="appointment-time-hint">hh:mm</div> |
| 369 | + <div class="usa-hint" id="appointment-time-hint">Select a time from the dropdown. Type into the input to filter options.</div> |
370 | 370 | {% if error_state == true %}<span class="usa-error-message" role="alert">Helpful error message</span>{% endif %} |
371 | 371 | <div class="usa-time-picker"> |
372 | 372 | <input |
|
0 commit comments