|
1 | 1 | name: Field group
|
2 | 2 | description: |
|
3 | 3 | - A group of fields, usually Radios or Checkboxes.
|
4 |
| - - Fieldgroup incorporates the help text component which may appear below a fieldgroup. |
| 4 | + - Field group incorporates the Help text component which may appear below a Field group. |
5 | 5 | - Help text is necessary to denote invalid checkbox fields, invalid radio button fields, and required fields.
|
6 |
| - - Invalid radio buttons are signified only by alert help text. |
7 |
| - - Invalid checkboxes are signified by alert help text and alert input box color. |
| 6 | + - Invalid radio buttons are signified only by negative Help text. |
| 7 | + - Invalid checkboxes are signified by negative Help text and the negative/invalid color on the input box. |
8 | 8 | sections:
|
9 | 9 | - name: Migration Guide
|
10 | 10 | description: |
|
11 |
| - ### Field Group Now Includes Label and Helptext |
| 11 | + ### Field group now includes Field label and Help text |
12 | 12 | - Include Field Label as size medium, `spectrum-FieldLabel spectrum-FieldLabel--sizeM`.
|
13 |
| - - Include Helptext as `spectrum-HelpText-text`. |
14 |
| - ### Field Group Label has two layout options |
| 13 | + - Include Help text as `spectrum-HelpText-text`. |
| 14 | + ### Field group label has two layout options |
15 | 15 | - Label can be top aligned with `spectrum-FieldGroup spectrum-FieldGroup--toplabel`.
|
16 | 16 | - Label can be side aligned with `spectrum-FieldGroup spectrum-FieldGroup--sidelabel`.
|
17 |
| - ### Field Group must now include `spectrum-FieldGroupInputLayout` as the immediate parent of the FieldGroup items |
| 17 | + ### Field group must now include `spectrum-FieldGroupInputLayout` as the immediate parent of the Field group items |
18 | 18 | - Due to the addition of label, a new nested div must wrap the fieldgroup items to control their layout separately from the label
|
19 | 19 |
|
20 | 20 | examples:
|
@@ -198,17 +198,22 @@ examples:
|
198 | 198 | <h4 class="spectrum-Heading spectrum-Heading--sizeXS spectrum-Examples-itemHeading">Radio</h4>
|
199 | 199 |
|
200 | 200 | <form class="spectrum-Form">
|
201 |
| - <div class="spectrum-FieldGroup spectrum-FieldGroup--toplabel spectrum-FieldGroup--horizontal" role="radiogroup" aria-labelledby="radiogroup-label-3"> |
| 201 | + <div |
| 202 | + class="spectrum-FieldGroup spectrum-FieldGroup--toplabel spectrum-FieldGroup--horizontal" |
| 203 | + role="radiogroup" |
| 204 | + aria-invalid="true" |
| 205 | + aria-labelledby="radiogroup-label-3" |
| 206 | + > |
202 | 207 | <div class="spectrum-FieldLabel spectrum-FieldLabel--sizeM" id="radiogroup-label-3">Radio Group Label</div>
|
203 | 208 |
|
204 | 209 | <div class="spectrum-FieldGroupInputLayout" aria-describedby="helptext-radio-3">
|
205 |
| - <div class="spectrum-Radio spectrum-FieldGroup-item is-invalid"> |
| 210 | + <div class="spectrum-Radio spectrum-FieldGroup-item"> |
206 | 211 | <input type="radio" name="pets" class="spectrum-Radio-input" id="radio-4">
|
207 | 212 | <span class="spectrum-Radio-button"></span>
|
208 | 213 | <label class="spectrum-Radio-label" for="radio-0">Kittens</label>
|
209 | 214 | </div>
|
210 | 215 |
|
211 |
| - <div class="spectrum-Radio spectrum-FieldGroup-item is-invalid"> |
| 216 | + <div class="spectrum-Radio spectrum-FieldGroup-item"> |
212 | 217 | <input type="radio" name="pets" class="spectrum-Radio-input" id="radio-5" checked>
|
213 | 218 | <span class="spectrum-Radio-button"></span>
|
214 | 219 | <label class="spectrum-Radio-label" for="radio-1">Puppies</label>
|
|
0 commit comments