Commit aa4847a
authored
chore: introduce 2 more sizes to controls
Inputs and selects previously had effectively one size. This PR adds the
design-system v2 **control scale** to them (from [the original
PR](Unleash#12425) by UX, Claude
generated), so inputs/selects/autocompletes can be sized `small` (24px),
`medium` (30px), or `large` (36px) and line up with buttons and
icon-buttons.
- This updates the wrappers (`Input`, `GeneralSelect`, `SelectField`,
`PasswordField`, `DateTimePicker`) to default to `large`.
- Updates the ~94 existing input/select call-sites that were explicitly
`size='small'`, and moves to `size='large'` (the bulk of the 69
component files) so they keep their current height. `medium` and `small`
are now opt-in sizes.
From the look around I had, controls look pretty similar to production
(except they are a tiny bit smaller, but barely).
## Screenshots
Flag on this branch vs sandbox
<img width="611" height="593" alt="Screenshot 2026-07-27 at 18 11 08"
src="https://github.com/user-attachments/assets/1223ba9b-456b-49bf-bb1f-8cb67c3cdcc1"
/>
<img width="611" height="593" alt="Screenshot 2026-07-27 at 18 11 13"
src="https://github.com/user-attachments/assets/626dda31-e1f2-4b3e-a73f-b2480030cf8a"
/>
Flag off this branch vs hosted
<img width="611" height="593" alt="Screenshot 2026-07-27 at 18 16 26"
src="https://github.com/user-attachments/assets/e38921d5-4ffe-4f52-b2c7-621b2059a481"
/>
<img width="611" height="593" alt="Screenshot 2026-07-27 at 18 16 31"
src="https://github.com/user-attachments/assets/3d41f77b-870f-46ad-a67d-30bc69b627b9"
/>1 parent 06a70e9 commit aa4847a
73 files changed
Lines changed: 326 additions & 118 deletions
File tree
- frontend/src
- component
- admin
- auth
- AutoCreateForm
- OidcAuth
- SamlAuth
- banners/BannerModal
- groups/GroupForm/GroupFormUsersSelect
- impact-metrics
- license
- users
- AccessOverview/ProjectAccess
- UsersList
- AccessRequestsTable
- ChangePassword
- changeRequest
- ChangeRequestOverview/ChangeRequestRequestedApprovers
- ChangeRequestSidebar/DraftChangeRequestActions
- common
- AutocompleteBox
- DateTimePicker
- GeneralSelect
- InputListField
- Input
- MultipleRoleSelect
- PasswordField
- ProjectSelect
- RoleSelect
- SelectField
- context/ContextForm
- counters/ExploreCounters
- environments/EnvironmentTable/EnvironmentActionCell/EnvironmentCloneModal/EnvironmentProjectSelect
- feature
- CopyFeature
- FeatureStrategy/FeatureStrategyConstraints/EditableConstraint
- AddRegexValueEditor
- FeatureView
- FeatureOverview
- ImplementFlagDialog
- ReleasePlan
- MilestoneProgressionForm
- SafeguardForm
- FeatureVariants/FeatureEnvironmentVariants/EnvironmentVariantsModal/VariantForm/VariantOverrides
- StrategyTypes
- FlexibleStrategy/StickinessSelect
- RolloutSlider
- StrategyInputList
- StrategyParameter
- feedbackNew
- feedback/FeedbackCES/__snapshots__
- filter/FilterItem
- impact-metrics
- ImpactMetricModal
- ImpactMetricsControls/SeriesSelector
- LabelFilter/LabelFilterSection/LabelFilterItem
- RegisterMetricDialog
- impact-views/views
- FeaturePicker
- ViewEditorDialog
- integrations/IntegrationForm
- IntegrationMultiSelector
- IntegrationParameters/IntegrationParameter
- onboarding/dialog/ConnectSdkDialog/GenerateApiKey
- playground/Playground/PlaygroundForm/PlaygroundCodeFieldset
- project/Project
- ProjectEnterpriseSettingsForm/ProjectLinkTemplates
- ProjectSettings/ProjectActions/ProjectActionsTable/ProjectActionsModal/ProjectActionsForm/ProjectActionsFormStep
- ProjectActionsFormStepActions
- ProjectActionsActionParameter
- ProjectActionsFormStepSource
- releases/ReleasePlanTemplate/TemplateForm
- segments
- user
- DemoAuth
- ForgottenPassword
- NewUser
- SimpleAuth
- themes
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
119 | | - | |
| 119 | + | |
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
179 | 179 | | |
180 | 180 | | |
181 | 181 | | |
182 | | - | |
| 182 | + | |
183 | 183 | | |
184 | 184 | | |
185 | 185 | | |
| |||
196 | 196 | | |
197 | 197 | | |
198 | 198 | | |
199 | | - | |
| 199 | + | |
200 | 200 | | |
201 | 201 | | |
202 | 202 | | |
| |||
216 | 216 | | |
217 | 217 | | |
218 | 218 | | |
219 | | - | |
| 219 | + | |
220 | 220 | | |
221 | 221 | | |
222 | 222 | | |
| |||
310 | 310 | | |
311 | 311 | | |
312 | 312 | | |
313 | | - | |
| 313 | + | |
314 | 314 | | |
315 | 315 | | |
316 | 316 | | |
| |||
332 | 332 | | |
333 | 333 | | |
334 | 334 | | |
335 | | - | |
| 335 | + | |
336 | 336 | | |
337 | 337 | | |
338 | 338 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
165 | 165 | | |
166 | 166 | | |
167 | 167 | | |
168 | | - | |
| 168 | + | |
169 | 169 | | |
170 | 170 | | |
171 | 171 | | |
| |||
186 | 186 | | |
187 | 187 | | |
188 | 188 | | |
189 | | - | |
| 189 | + | |
190 | 190 | | |
191 | 191 | | |
192 | 192 | | |
| |||
210 | 210 | | |
211 | 211 | | |
212 | 212 | | |
213 | | - | |
| 213 | + | |
214 | 214 | | |
215 | 215 | | |
216 | 216 | | |
| |||
240 | 240 | | |
241 | 241 | | |
242 | 242 | | |
243 | | - | |
| 243 | + | |
244 | 244 | | |
245 | 245 | | |
246 | 246 | | |
| |||
265 | 265 | | |
266 | 266 | | |
267 | 267 | | |
268 | | - | |
| 268 | + | |
269 | 269 | | |
270 | 270 | | |
271 | 271 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
82 | | - | |
| 82 | + | |
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
294 | 294 | | |
295 | 295 | | |
296 | 296 | | |
297 | | - | |
| 297 | + | |
298 | 298 | | |
299 | 299 | | |
300 | 300 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
117 | | - | |
| 117 | + | |
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
277 | 277 | | |
278 | 278 | | |
279 | 279 | | |
280 | | - | |
| 280 | + | |
281 | 281 | | |
282 | 282 | | |
283 | 283 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
148 | 148 | | |
149 | 149 | | |
150 | 150 | | |
151 | | - | |
| 151 | + | |
152 | 152 | | |
153 | 153 | | |
154 | 154 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
101 | | - | |
| 101 | + | |
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
| |||
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
141 | | - | |
| 141 | + | |
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
0 commit comments