FormidableLabs / nuka-carousel

Small, fast, and accessibility-first React carousel library with an easily customizable UI and behavior to fit your brand and site.
https://commerce.nearform.com/open-source/nuka-carousel
Other
3k stars 596 forks source link

Fixed width slides #985

Closed vaishal closed 1 year ago

vaishal commented 1 year ago

Description

Implemented a prop for fixed width slides slideWidth and slidesToScroll="auto".

Fixes #927 #979

Todo

Type of Change

How Has This Been Tested?

Checklist

vercel[bot] commented 1 year ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
nuka-carousel ✅ Ready (Inspect) Visit Preview Dec 16, 2022 at 1:00PM (UTC)
allypalanzi commented 1 year ago

this looks great 👍🏻 will make it so my team can upgrade to v5 finally!

F-Moody commented 1 year ago

Hello, any idea when this feature will be released ?

ValGeorgiev commented 1 year ago

Note about the cypress test that is failing, tested it locally and everything is working, I am going to push it into the main. Please raise an issue if you see something wrong.

allypalanzi commented 1 year ago

this is exciting! will this be released in v5?

svanetten1976 commented 1 year ago

@vaishal @allypalanzi yes I was also wondering if slidesToScroll auto would work with a fixed slideWidth set. I had been using v4.8.4 in a project that had a requirement of showing a variable number of slides based on the viewport width (but pagin one at a time or smoothly swiping left and right, and 4.8.4 worked great for that). So when I saw that this functionality was added to v5.4.1 I tried to upgrade but the carousel now doesn't work. Am I missing something? Are additional props / config settings that are required for fixed width slides to work? Thanks -- Steve

svanetten1976 commented 1 year ago

Ah I see what's happening... the patch to allow fixed width slides has been merged into main but not yet made available in a release: https://github.com/FormidableLabs/nuka-carousel/compare/nuka-carousel%405.4.1...main Any idea when this will actually be available in a release @ValGeorgiev ? Thanks! -- Steve

joekur commented 1 year ago

Hi, I'm also waiting on an updated v5 release with this fix. Particularly because we've encountered a bug in v4, for which it seems more reasonable to make the jump to v5 instead of trying to backport a fix to v4.

It would be nice to confirm at least if Formidable still intends to maintain this package, and what sort of timeline we could expect on this release, to inform if we should be considering forking or other alternatives. Thanks!

BrittanyIRL commented 1 year ago

@joekur @allypalanzi @svanetten1976 @F-Moody

Hi all, just wanted to jump in here to tell you that V5.5.0 was released this past weekend - https://github.com/FormidableLabs/nuka-carousel/releases/tag/5.5.0 and this PR #985 is included in it.

svanetten1976 commented 1 year ago

@BrittanyIRL that's fantastic! Thanks or letting me know!