-
Notifications
You must be signed in to change notification settings - Fork 76
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
[Combobox] Improve placeholder display / add support for placeholder icon #4629
Comments
@benelan could we bump priority of this? Should be a reasonably easy add. |
Yep, that is proposed as default here: #4738 (comment) |
Installed and assigned for verification. |
@macandcheese can you help verify that this is the intended spacing when there is no |
Two pieces of feedback on that: It seems the example shown should use the same spacing as input : It seems like there is extra padding on the left - and you can see there is a cursor change at the left side that coincides with that extra space. I would also imagine the alignment between the value / placeholder with icon, and the spacing of the combobox items (when not nested), would align: cc @ashetland for visibility. |
Yeah I agree with that feedback. Assigning back to dev for some adjustments. Thanks Adam! |
Ideally the spacing is the same, in that example the bullet dot is visually misaligned. IMO it would make sense to push it out to match the item with icon. When there is an icon and item is selected, I do find it weird the dot isn’t present, even if it pushes the icon over, it could still be aligned to the gutter of icon / bullet. We could also the icon the color of the dot to make it easier to tell when it’s selected. |
Given the context of alignment to accommodate @jcfranco Should we proceed with closing and creating a new issue with this context or re-assigning this issue to the current or next sprint to tackle? Fairly low in prioritization, but seems pertinent for the 1.0.0 release.
The recommended fix would include:
|
Recirculating to a future sprint to meet the additional items in the comment above. cc @jcfranco |
Added fix for aligning selector indicator with the icon when present and text aligns regardless of icon. Do we need to add selector indicator for items with icons or would that be a separate discussion ? |
I think I'd expect it to also have in indicator, like dropdown, but cc @ashetland @SkyeSeitz for final design. |
Yup. 100% agree here. |
Can i get a Figma design for this one as matching with dropdown is bit of an issue with difference in padding for |
The original issue has been addressed above in the following Codepen. A new issue, 6287 was created to address the component's indicator icon when children have accompanying icons. placeholder image:no placeholder image (left-align): |
Description
The current implementation of the placeholder text leads to a weird space when there are icons present in the combobox items.
Current functionality:
Acceptance Criteria
We should:
placeholder-icon
property to set a default icon.placeholder-icon
is not provided, left-align the placeholder text to remove the awkward space.Relevant Info
Breakout from #3074.
Which Component
Combobox
Example Use Case
There are often times when having a prompt icon adjacent to the placeholder text could be useful. If a placeholder icon is not desired, the current empty space between the edge of the input and the placeholder text is not desirable.
The text was updated successfully, but these errors were encountered: