-
Notifications
You must be signed in to change notification settings - Fork 77
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
Single-select Combobox is 2px taller than other form elements #6421
Comments
@geospatialem Another add for the Combobox Redesign Epic. |
Proposed updates to match Combobox height to other inputs:
|
We'll be able to use the new focus offset css variable to prevent the overlap of focus from Chips. |
Do we need to use the focus offset variable to correct anything? The idea with what's outlined above is that once chips populate the input, it would grow in height as it currently does. The spec'd update to the height is only to the initial unpopulated height of the input. |
Yeah, maybe we could bump the y-padding on the combobox when populated - if its growing in height anyway it could have some more room. It could also be balanced with the padding to the left border of the input. |
**Related Issue:** #6421 ## Summary ✨💅✨
Installed and assigned for verification. |
Actual Behavior
The Combobox component at medium scale is 34px tall, whereas all other form elements are 32px (at the same scale). This isn't a perceptible difference in vertical form layouts, but it makes alignment impossible for horizontal designs. I think this is a bug since scales seem to be based on multiples of 4.
(screenshot from Figma)
The same difference is apparent at small and large scales as well.
Expected Behavior
When the Combobox is set to single-select, its height should be the same as that of all other form elements with the same scale.
Reproduction Sample
https://codepen.io/MitchelCox/pen/GRBzMKa
Reproduction Steps
Place Combobox alongside other form elements
Use flex to position them horizontally
Ensure that the combo box is set to single-select
Reproduction Version
1.0.3
Relevant Info
No response
Regression?
No response
Impact
As described above, this issue affects any application where horizontal alignment is important. This is not a functional bug, so it's not high-impact. However, the single-select Combobox is one of the most-used form elements in Web Analysis and is sometimes shown side-by-side with other inputs.
Esri team
ArcGIS Map Viewer
The text was updated successfully, but these errors were encountered: