Skip to content

Commit

Permalink
OPHJOD-1203: Fix gap prop in CardCarousel
Browse files Browse the repository at this point in the history
  • Loading branch information
juhaniko committed Jan 20, 2025
1 parent 8eff8a1 commit 15163cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/components/CardCarousel/CardCarousel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export const CardCarousel = ({ items = [], translations, itemWidth, gap = 16 }:

return (
<>
<ul className="ds-flex ds-flex-row ds-gap-5 ds-overflow-hidden ds-p-3" ref={containerRef}>
<ul className="ds-flex ds-flex-row ds-overflow-hidden ds-p-3" ref={containerRef} style={{ gap }}>
{items.map((item, index) => {
// Change the page according to focused item during tab navigation
const onFocus = () => {
Expand Down

0 comments on commit 15163cb

Please sign in to comment.