Skip to content

Commit

Permalink
fix: arrow color
Browse files Browse the repository at this point in the history
  • Loading branch information
alangumer committed Oct 21, 2024
1 parent 7dea577 commit 6052501
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
5 changes: 5 additions & 0 deletions src/components/organisms/cardSlider/index.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,11 @@
}
}
}
.arrowWhite {
@media (min-width: $breakpoint-lg) {
color: $ts-white;
}
}

.base:hover .arrow:not(:disabled) {
opacity: 1;
Expand Down
8 changes: 4 additions & 4 deletions src/components/organisms/cardSlider/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -116,25 +116,25 @@ export default function Slider({
}}
>
<button
className={styles.arrow}
className={`${styles.arrow}${isDarkBg && ' ' + styles.arrowWhite}`}
onClick={() => swiper?.slidePrev()}
disabled={isBeginning}
aria-label={previous}
>
<IconBack color={isDarkBg && '#fff'} />
<IconBack />
</button>

<LazySwiper on={handlers} className={hasBg ? styles.whiteBg : ''}>
{slides}
</LazySwiper>

<button
className={styles.arrow}
className={`${styles.arrow}${isDarkBg && ' ' + styles.arrowWhite}`}
onClick={() => swiper?.slideNext()}
disabled={isEnd}
aria-label={next}
>
<IconForward color={isDarkBg && '#fff'} />
<IconForward />
</button>
</div>
);
Expand Down

0 comments on commit 6052501

Please sign in to comment.