Merged in fix/BOOK-293-button-variants (pull request #3371)

fix(BOOK-293): changed variants and props on IconButton component

* fix(BOOK-293): changed variants and props on IconButton component

* fix(BOOK-293): inherit color for icon


Approved-by: Bianca Widstam
Approved-by: Christel Westerberg
This commit is contained in:
Erik Tiekstra
2025-12-19 12:32:52 +00:00
committed by Bianca Widstam
parent 2197ab2137
commit 3f632e6031
169 changed files with 665 additions and 944 deletions

View File

@@ -4,7 +4,6 @@ import { cx } from "class-variance-authority"
import { useIntl } from "react-intl"
import { IconButton } from "@scandic-hotels/design-system/IconButton"
import { MaterialIcon } from "@scandic-hotels/design-system/Icons/MaterialIcon"
import { useCarousel } from "./CarouselContext"
@@ -28,9 +27,8 @@ export function CarouselPrevious({ className }: CarouselButtonProps) {
id: "carousel.previousSlide",
defaultMessage: "Previous slide",
})}
>
<MaterialIcon color="Icon/Interactive/Default" icon="arrow_back" />
</IconButton>
iconName="arrow_back"
/>
</span>
)
}
@@ -51,9 +49,8 @@ export function CarouselNext({ className }: CarouselButtonProps) {
id: "carousel.nextSlide",
defaultMessage: "Next slide",
})}
>
<MaterialIcon color="Icon/Interactive/Default" icon="arrow_forward" />
</IconButton>
iconName="arrow_forward"
/>
</span>
)
}