fix(SW-2376): css specificity to fix carousel buttons position

Approved-by: Chuma Mcphoy (We Ahead)
This commit is contained in:
Erik Tiekstra
2025-05-21 07:06:11 +00:00
parent e5836c9e65
commit e48e90dee4
3 changed files with 3 additions and 3 deletions

View File

@@ -4,7 +4,7 @@
gap: var(--Spacing-x4) var(--Spacing-x1);
}
.navigationButton {
.carousel .navigationButton {
top: 125px; /* Content card image has a fixed height of 250px, this centers the button */
}

View File

@@ -1,3 +1,3 @@
.navigationButton {
.carousel .navigationButton {
top: 125px; /* Content card image has a fixed height of 250px, this centers the button */
}

View File

@@ -48,7 +48,7 @@ export default function CarouselCards({ carousel_cards }: CarouselCardsProps) {
onFilterSelect={setActiveFilter}
/>
)}
<Carousel key={activeFilter}>
<Carousel key={activeFilter} className={styles.carousel}>
<Carousel.Content>
{filteredCards.map((card, index) => (
<Carousel.Item key={`${card.heading}-${index}`}>