Esri / calcite-design-system

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

[Pagination] page items to populate entire component width #8420

Open SkyeSeitz opened 8 months ago

SkyeSeitz commented 8 months ago

Check existing issues

Description

Currently Pagination defaults to left aligned and prescribes a set number of page items at each breakpoint.

We can explore displaying as many "pages" as possible as seen in the Figma demo below, where the content is centered in the width and "pages" are added once there is enough space for the width of the next page item.

https://www.figma.com/proto/iCQBMp5Q5zlSfyE9NxkdO7/Pagination---responsive?page-id=1%3A2&type=design&node-id=537-8761&viewport=-4219%2C-829%2C0.54&t=qiNM5mxZUawgnbnd-1&scaling=min-zoom&mode=design

Acceptance Criteria

Pagination is centered by default Padding and min-widths of page items stay the same Component width fill its container and populates as many page items as it can fit

Relevant Info

No response

Which Component

Pagination

Example Use Case

No response

Priority impact

p4 - not time sensitive

Calcite package

Esri team

Calcite (design)

github-actions[bot] commented 8 months ago

cc @geospatialem, @brittneytewks