-
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
Enhancement: Subtitle/description for combobox-item #3695
Comments
This would probably be best implemented as a |
We should also have the ability to provide a value to be displayed in the input when the combobox is closed. In this spatial reference case, it could display the WKID or some other shorter representation of the spatial reference. In our case, we bumped into this while working on a Timezone picker where we have a long name with the IANA code and the UTC offset, but we don't want to display all that information in the input itself, since it would make the input too large. |
|
Installed and assigned for verification. |
Reopening issue to correct a couple small misses during design review. Design spec has been updated. cc @jcfranco |
**Related Issue:** #3695 ## Summary This fixes spacing and font-weight to follow the updated spec. ### Notes * updates previous internal CSS prop to follow conventions (will follow suit for others in a separate PR) * ensures selected font weight is only applied to the title/heading * fixes trailing indent padding * prevents wrapping of `short-heading`
Installed and assigned for verification. |
🍡 |
…s and `content-end` slot (#9771) **Related Issue:** #3695 ## Summary This adds the following enhancements to `combobox`/`combobox-item`: * `description` prop - displays description below label * `shortHeading` prop - displays short version of the heading (label) in selection * `content-end` slot - enables slotting non-interactive elements after the item's content **Note**: the new props are filterable and also participate in visual matching
**Related Issue:** #3695 ## Summary This fixes spacing and font-weight to follow the updated spec. ### Notes * updates previous internal CSS prop to follow conventions (will follow suit for others in a separate PR) * ensures selected font weight is only applied to the title/heading * fixes trailing indent padding * prevents wrapping of `short-heading`
Description
Provide a subtitle/description prop for displaying a secondary label on a combobox-item
Acceptance Criteria
Relevant Info
Which Component
combobox-item
Example Use Case
In ArcGIS Velocity, we have a spatial reference selector which has ~9000 items, and users often are familiar with choosing a spatial reference by either the text label (e.g. "GCS WGS 1984") or by its numeric WKID (e.g. "4326"), so we used the
subtitle
prop that calcite-reactMenuItem
s provide to display the numeric WKID on the menuitem, and filtering automatically filters against that subtitle as well.Due to a bug in calcite-react where scrolling while using the
appendToBody
andvirtualized
props together will cause the dropdown to close, we are looking to switch to using calcite-components combobox instead, but not having this subtitle is a serious UX drawback.The text was updated successfully, but these errors were encountered: