Commit f7e7350
Luke Bowerman
Fieldset, Legend improvements + more
Checkbox & Radio
- Remove default margin (previously `3px)
ToggleSwitch
- Explicitly specify `margin: 0` to suppress browser-default styling
Field improvements
- Set `id` on label based on field.id to allow for `Fieldset` `legend` replacement / association
- Remove bottom margin
- Vertically center input (for checkbox & radio group) within Field
- Only apply Label styling to immediate child to prevent unintended consequences on nested Fields (e.g. CheckboxGroup)
Fieldset
- Implement with a `Space` / `SpaceVertical` layout (emulate `Form`)
- Enable `inline` presentation
- Use `div` instead of `fieldset` for DOM object due to Chrome implementation bug of `fieldset` (doesn’t allow for Flex / Grid layouts within `fieldset`
- Minor fix-up to Fieldset composition (no visual impact)
Legend
- Extend `Label` styles to keep Label & Legend presentation bound where appropriate
Grid
- Correct column specification to prevent grid “blow-out”
- Remove explicitly specified `width: 100%` (it’s implied)
Space & SpaceVertical
- Specify `width: 100%` by default
- Add `layout` / `layoutProps` to simpleLayoutProps to allow for default width specification - Improve specificity of child selectors to apply only to direct descendants.
- Use double selector to override theme reset behavior
- FieldColor defaults to `width=“100%”`
- `RequiredStar` was preventing visual artifact from being rendered (`className` assignment missing)
- TextArea now only resizes on the Y access1 parent 238f6c9 commit f7e7350
File tree
45 files changed
+716
-612
lines changed- packages
- components/src
- Form
- Fieldset
- __snapshots__
- Fields
- FieldCheckbox/__snapshots__
- FieldColor
- FieldRadio/__snapshots__
- FieldSelect/__snapshots__
- FieldTextArea/__snapshots__
- FieldText/__snapshots__
- FieldToggleSwitch/__snapshots__
- Inputs
- Checkbox
- __snapshots__
- Radio
- __snapshots__
- TextArea
- __snapshots__
- ToggleSwitch
- __snapshots__
- Label
- __snapshots__
- Legend
- __snapshots__
- __snapshots__
- Layout
- Grid
- __snapshots__
- Space
- __snapshots__
- utils
- playground/src
- Form
- www/src/documentation/components/forms
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
45 files changed
+716
-612
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| |||
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
127 | | - | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
128 | 133 | | |
129 | 134 | | |
130 | 135 | | |
| |||
147 | 152 | | |
148 | 153 | | |
149 | 154 | | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
150 | 168 | | |
151 | 169 | | |
152 | 170 | | |
153 | 171 | | |
154 | 172 | | |
155 | | - | |
156 | 173 | | |
157 | 174 | | |
158 | 175 | | |
| |||
165 | 182 | | |
166 | 183 | | |
167 | 184 | | |
| 185 | + | |
168 | 186 | | |
169 | 187 | | |
170 | 188 | | |
171 | 189 | | |
172 | 190 | | |
173 | 191 | | |
174 | | - | |
| 192 | + | |
175 | 193 | | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
| 194 | + | |
190 | 195 | | |
191 | 196 | | |
192 | 197 | | |
| |||
195 | 200 | | |
196 | 201 | | |
197 | 202 | | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | | - | |
| 203 | + | |
| 204 | + | |
202 | 205 | | |
203 | 206 | | |
204 | 207 | | |
| |||
Lines changed: 0 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
28 | 27 | | |
29 | 28 | | |
30 | 29 | | |
| |||
69 | 68 | | |
70 | 69 | | |
71 | 70 | | |
72 | | - | |
73 | 71 | | |
74 | 72 | | |
75 | 73 | | |
| |||
176 | 174 | | |
177 | 175 | | |
178 | 176 | | |
179 | | - | |
180 | 177 | | |
181 | 178 | | |
182 | 179 | | |
| |||
221 | 218 | | |
222 | 219 | | |
223 | 220 | | |
224 | | - | |
225 | 221 | | |
226 | 222 | | |
227 | 223 | | |
| |||
Lines changed: 27 additions & 30 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
41 | 40 | | |
42 | 41 | | |
43 | 42 | | |
| |||
186 | 185 | | |
187 | 186 | | |
188 | 187 | | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
200 | 214 | | |
201 | | - | |
202 | | - | |
203 | | - | |
204 | | - | |
205 | | - | |
206 | | - | |
207 | | - | |
208 | | - | |
209 | | - | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | | - | |
214 | | - | |
215 | | - | |
216 | | - | |
217 | | - | |
218 | | - | |
| 215 | + | |
219 | 216 | | |
220 | 217 | | |
221 | 218 | | |
| |||
Lines changed: 0 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
30 | 29 | | |
31 | 30 | | |
32 | 31 | | |
| |||
74 | 73 | | |
75 | 74 | | |
76 | 75 | | |
77 | | - | |
78 | 76 | | |
79 | 77 | | |
80 | 78 | | |
| |||
168 | 166 | | |
169 | 167 | | |
170 | 168 | | |
171 | | - | |
172 | 169 | | |
173 | 170 | | |
174 | 171 | | |
| |||
216 | 213 | | |
217 | 214 | | |
218 | 215 | | |
219 | | - | |
220 | 216 | | |
221 | 217 | | |
222 | 218 | | |
| |||
0 commit comments