-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Carousel] Improve support for high item counts #9121
Comments
I think adding support for a CarouselMenu might also be a good solution. |
I don't know if a Carousel's main purpose is to serve intention-based browsing like that ("show me slide 5 of 8"). I understand this makes sense in some cases (a gallery of known imagery, selected features, etc. - "I want to go to view feature abc") - but I'd expect a navigation experience like that to be built somewhere around the Carousel - in a Panel with associated UI, etc. In the future, each "representative dot" might also not represent a single entity - but maybe representing 2/3 Carousel Items in view: #9104 Main intention with this is to resolve the following: I'd propose something like the following: Add a
Thoughts:
|
**Related Issue:** #9121 Adds support for better display of high Carousel Item counts by automatically adjusting the number shown as container width changes. https://github.com/user-attachments/assets/0d682f21-ac2e-4a4a-830c-e15b6a5faf1d ## Summary This follows the pattern found in Pagination, as the behavior is quite similar, but there are a few differences in Carousel to support the "rotation effect" of the "dots". - Uses existing breakpoints to determine when to reduce displayed "dots". - Uses a "represents more" styling when the first / last visible "dot" has more siblings before / after. - When in the "start or end range" - the first / last visible "dot" will not have a style treatment as it represents the start / end. - Updates stories, tests, and local demos with new feature.
Installed and assigned for verification. |
🍠 Verified locally on Screen.Recording.2024-09-18.at.2.32.21.PM.mov |
Check existing issues
Description
Carousel is currently best used with a small number of items. It could be worth supporting more items or "slides" that exceeds the page indicator display. A user could have 15 slides, but only has space for 5 page indicators.
Acceptance Criteria
A large number of Carousel Items could be supported via a maxPagesDisplayed property or this could be automatic based on width and space available. If there are more items than there are page indicators, there would need to be some kind of queuing-like visual affordance to inform the user that there are more pages than the currently visible indicators show. Would also need to explore what it would look like when the user reaches the last item and loops back to the beginning item.
Relevant Info
cc @macandcheese
Which Component
Carousel
Example Use Case
No response
Priority impact
p4 - not time sensitive
Calcite package
Esri team
Calcite (design)
The text was updated successfully, but these errors were encountered: