Esri / calcite-design-system

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

Sticky List Item Group Header #6466

Open am-maneaters opened 1 year ago

am-maneaters commented 1 year ago

Description

Add a prop to ListItemGroup called sticky which would make the ListItemGroup header stick to the top of the list. This would give users more context when they are looking at a list with many ListItems per group because it would make the GroupHeader persistent even when scrolling through many items.

Acceptance Criteria

ListItemGroup has a prop that allows users to designate it as sticky. Then when a user scrolls down in a list with groups, the header of the group will continue to display at the top.

Relevant Info

No response

Which Component

List/ListItemGroup

Example Use Case

https://mui.com/material-ui/react-list/#sticky-subheader

Esri team

Professional Services - Midwest Delivery Center

macandcheese commented 1 year ago

I think this is a good suggestion but it should just be the default, non-configurable behavior.

ashetland commented 4 months ago

Do we think this behavior could also apply to Combobox Groups?