[Chip]: truncate calcite-chip label #3265
Labels
1 - assigned
Issues that are assigned to a sprint and a team member.
ArcGIS Mission
Issues logged by ArcGIS Mission team members.
design
Issues that need design consultation prior to development.
enhancement
Issues tied to a new feature or request.
estimate - design - sm
Small design effort; 1-4 days of design work
p - medium
Issue is non core or affecting less that 60% of people using the library
spike
Issues that need quick investigations for time estimations, prioritization, or a quick assessment.
Milestone
Description
It would be helpful if the calcite-chip had a built-in function to truncate or abbreviate the chip label at either (1) a max number of characters, or (2) once it fills 100% of its available space on the page.
Although the best practice is not to create long chip labels, it cannot always be avoided. For example:
Acceptance Criteria
Relevant Info
Which Component
Chip
Example Use Case
In ArcGIS Mission, users have the option of creating tags for their mission. This helps make missions easily searchable and provides more context into the purpose of the mission. We recently switched our custom tag component out and replaced it with the calcite-chip component. Currently, the tags are in a container that scales to a smaller width as the page resizes. When this happens, the chips don't truncate -- they simply hang off the sides (see example below). We have corrected this in our app by setting a max character width, but this won't be a feasible solution in every scenario.
The text was updated successfully, but these errors were encountered: