Skip to content

Commit

Permalink
Merge pull request #23 from ahmedrowaihi/patch-1
Browse files Browse the repository at this point in the history
👌 IMPROVE(carousel): fix missing classname, use data attribute for thumbs
  • Loading branch information
BelkacemYerfa authored Mar 29, 2024
2 parents e0d3053 + eede795 commit a01c0c5
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/registry/default/extension/carousel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -295,10 +295,12 @@ const CarouselIndicator = forwardRef<
<Button
ref={ref}
size="icon"
className={cn("h-1 w-6 rounded-full", {
"bg-primary": isSlideActive,
"bg-primary/50": !isSlideActive,
})}
className={cn(
"h-1 w-6 rounded-full",
"data-[active='false']:bg-primary/50 data-[active='true']:bg-primary",
className
)}
data-active={isSlideActive}
onClick={() => onThumbClick(index)}
{...props}
>
Expand Down

0 comments on commit a01c0c5

Please sign in to comment.