Skip to content

Support carousel - #14

Open
topstar-ai wants to merge 3 commits into
mainfrom
support_carousel
Open

Support carousel#14
topstar-ai wants to merge 3 commits into
mainfrom
support_carousel

Conversation

@topstar-ai

Copy link
Copy Markdown
Contributor

No description provided.

@IceOnFire IceOnFire left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The carousel looks really good! A few issues I see are:

  1. The left and right arrows are not vertically centered. Maybe their centering includes the dots, but this makes them a bit weird.
  2. I like how the arrows fit on top of the slides, but most of the times carousel components show them outside of the scrolling area. Maybe this could be a configurable prop
  3. The arrows could maybe be implemented as round or ghost Button components, reusing what we have instead of reinventing them? Maybe the look of those arrows could also be configured through a few props
  4. It would be nice to have an infinite scrolling carousel, which starts back to 1 after 5. Not going back to page 1, maybe changing the items into [2, 3, 4, 5, 1] or something
  5. Now that I see it, both Carousel and BeforeAfter should be included in the Data Display category, not Controls: Controls are just form controls or other widgets whose primary focus is interaction. Carousel and BeforeAfter are interactive, but their main focus is to display data
  6. It's very cool to have a bare carousel that can be navigated with the keyboard, but I would expect to be able to drag with the mouse too then
  7. This is actually a bug: the "Many per view" story doesn't allow to go back once you reach the end

@topstar-ai topstar-ai closed this Jul 17, 2026
@topstar-ai topstar-ai reopened this Jul 17, 2026

@IceOnFire IceOnFire left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great job, but there's still a couple of issues. Apart from the comments below, I see:

  1. The Vertical version is squeezed horizontally
  2. The ManyPerView version seems quite broken when going right

* @param {number} length
* @returns {number}
*/
export function carouselHome(length) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Every function name is rigthfully an imperative verb in this file. Shouldn't this be getHome, or computeHome? I would leave out the carousel part too, since it resides in a carousel.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will set name as getHome. ok?

): TemplateResult
renderIndicators(props: CarouselProps): TemplateResult
renderIndicator(props: CarouselProps, index: number): TemplateResult
indicatorSelect(

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would move this one higher up, in alphabetical order with the rest of the event handlers, and leave the newline between handles and render functions as it was before.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants