patternfly / patternfly-design

Use this repo to file all new feature or design change requests for the PatternFly project
114 stars 104 forks source link

Consider whether we need Chips #1222

Closed mcarrano closed 1 year ago

mcarrano commented 1 year ago

Chips and Labels share nearly identical functionality while having unique usage and visual appearance. We should consider whether chips are still needed or if labels can be substituted to satisfy and existing use cases that require chips.

mcarrano commented 1 year ago

@mcarrano will pull together more discussion - include Michael, Margot, Tina, Sarah R

mcarrano commented 1 year ago

@mmenestr @mceledonia @lboehling @srambach @tiyiprh and I met today to discuss this. The general consensus was that it would be good to deprecate chips in favor of using compact labels instead. @mmenestr will mockup a page with both filter chips and labels so we can see what this would look like. Probably want to constrain the visual appearance of labels used in place of filter chips (i.e. simple gray labels).

It was observed that we don't currently support a true compact label group (label group height is not affected by making labels compact), so this would need to be addressed if we proceed with this update.

mmenestr commented 1 year ago

Mocks here: https://www.sketch.com/s/d7e287f4-39e3-4c17-a302-2131d8f3ea87

mmenestr commented 1 year ago

Final proposal/plan: We have decided to fully deprecate chips in favor of labels.

This will require the following changes:

All relevant details and mocks can be found here: https://www.sketch.com/s/d7e287f4-39e3-4c17-a302-2131d8f3ea87

mcarrano commented 1 year ago

Thanks @mmenestr ! I have opened the following development issues:

Deprecate the chip and chip group components. Core issue: https://github.com/patternfly/patternfly/issues/5343 ; React issue: https://github.com/patternfly/patternfly-react/issues/8579

Create a new compact label group component and change the standard label group component to match the new compact label group styling. Core issue: https://github.com/patternfly/patternfly/issues/5344

Update all Filter demos and table demos that include chips in them. Core issue: https://github.com/patternfly/patternfly/issues/5346

Update Multiple select component to include labels instead of chips inside the toggle. Core issue: https://github.com/patternfly/patternfly/issues/5345

mmenestr commented 1 year ago

Design doc issue opened: https://github.com/patternfly/patternfly-org/issues/3410

lboehling commented 1 year ago

Design kit issue opened: https://github.com/patternfly/patternfly-design-kit/issues/606