Esri / calcite-design-system

A monorepo containing the packages for Esri's Calcite Design System
https://developers.arcgis.com/calcite-design-system/
Other
285 stars 76 forks source link

New Component: chip-group and selection modes #1933

Closed macandcheese closed 1 year ago

macandcheese commented 3 years ago

Description

We need a workflow for single or multi selection of chips.

Material refers to these as “choice” / “filter” chips - https://material.io/components/chips#types

Our options could match other components in our system like dropdown, accordion, etc., with a single/ multi / single-persist / none selection mode prop.

User Stories

Single select cc @asangma

Multi select: Category search on : https://developers.arcgis.com/calcite-design-system/icons/

Screen Shot 2021-08-23 at 8 53 56 AM

That functionally works as "multi select choice chips" would (missing some keyboard affordances)

<calcite-chip-group selection-mode="single/multi/single-persist">
    <calcite-chip></calcite-chip>
    <calcite-chip></calcite-chip>
<calcite-chip-group>

High priority for Online (analysis/home app)

macandcheese commented 3 years ago

Can we bump the priority of this? We are still using a hand-rolled solution using Calcite Chips on the icon search linked above.

ethanbdev commented 3 years ago

+1, have a need for this as well!

macandcheese commented 3 years ago

@julio8a @benelan - can we take a look at adding some priority to this?

mitc7862 commented 3 years ago

This looks great! We really need this in Map Viewer and Analysis Studio.

macandcheese commented 2 years ago

@benelan let's look at re-prioritizing this one if possible next triage.

ethanbdev commented 2 years ago

@jay-bis ended up implementing something similar for a different project, I am not sure if some if it could be reused / moved to this repository

ellenupp commented 1 year ago

We could also use something like this in Dashboards. We're currently implementing something similar using calcite-buttons:

image

But we also have an "edit" mode where items can be reordered and renamed.

image

github-actions[bot] commented 1 year ago

Installed and assigned for verification.

geospatialem commented 1 year ago

Verified in master with mouse, keyboard, and AT - JAWS and NVDA.

Referencing issue https://github.com/Esri/calcite-components/issues/6825 for additional keyboard support down the line.