You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The arrow buttons were plain divs passed to react-slick. Slick clones them and adds currentSlide / slideCount props, which React was complaining about that they aren't valid DOM attributes.
So I have now wrapped the arrows in a small CarouselArrow component that filters those out before spreading the rest onto the div.
Also fixed another issue, wherein setting empty content on the arrows didn't actually hide them, because slick still draws a 20x20 absolute-positioned click target.
Now we set arrows: false on slick when both prevButton and nextButton are empty. Anyone passing slickProps.arrows explicitly will still get the value.
Screenshot
Before
Warnings related to props
After
No warnings
The carousel doesn't leave invisible click areas at the edges
Note
Low Risk
Localized carousel UI fix with no auth, data, or API impact; only affects arrow rendering and slick configuration defaults.
Overview
Fixes react-slick carousel arrow behavior in Carousel.tsx by wrapping custom prev/next controls in a CarouselArrow helper that strips currentSlide and slideCount before they reach the DOM, eliminating React invalid-attribute warnings when slick clones the arrow elements.
Also sets arrows on the slider to false when both prevButton and nextButton have no blocks, so slick no longer renders the default 20×20 invisible edge click targets when arrows are intentionally empty. An explicit slickProps.arrows can still override because slickProps is spread after this default.
Reviewed by Cursor Bugbot for commit d7f4f41. Bugbot is set up for automated code reviews on this repo. Configure here.
Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.
This PR includes no changesets
When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Screenshot
Before
Warnings related to props

After
No warnings

The carousel doesn't leave invisible click areas at the edges

Note
Low Risk
Localized carousel UI fix with no auth, data, or API impact; only affects arrow rendering and slick configuration defaults.
Overview
Fixes react-slick carousel arrow behavior in
Carousel.tsxby wrapping custom prev/next controls in aCarouselArrowhelper that stripscurrentSlideandslideCountbefore they reach the DOM, eliminating React invalid-attribute warnings when slick clones the arrow elements.Also sets
arrowson the slider to false when bothprevButtonandnextButtonhave no blocks, so slick no longer renders the default 20×20 invisible edge click targets when arrows are intentionally empty. An explicitslickProps.arrowscan still override becauseslickPropsis spread after this default.Reviewed by Cursor Bugbot for commit d7f4f41. Bugbot is set up for automated code reviews on this repo. Configure here.