diff --git a/apps/scandic-web/components/Blocks/ShortcutsList/ShortcutsListItems/index.tsx b/apps/scandic-web/components/Blocks/ShortcutsList/ShortcutsListItems/index.tsx
index 73922e4a2..4bdc5fbe9 100644
--- a/apps/scandic-web/components/Blocks/ShortcutsList/ShortcutsListItems/index.tsx
+++ b/apps/scandic-web/components/Blocks/ShortcutsList/ShortcutsListItems/index.tsx
@@ -14,7 +14,10 @@ export default function ShortcutsListItems({
return (
{shortcutsListItems.map((shortcut) => (
- -
+
-
, "color">,
+ VariantProps {
+ trackingId?: string
+ trackingParams?: Record
+ appendToCurrentPath?: boolean
+}
export default function ButtonLink({
- children,
+ variant,
+ color,
+ size,
+ typography,
+ className,
href,
target,
+ onClick = () => {},
trackingId,
trackingParams,
- onClick = () => {},
appendToCurrentPath,
- ...buttonProps
+ ...props
}: ButtonLinkProps) {
const currentPageSlug = usePathname()
+ const classNames = variants({
+ variant,
+ color,
+ size,
+
+ typography,
+ className,
+ })
const fullUrl = useMemo(() => {
let newPath = href
@@ -31,19 +53,17 @@ export default function ButtonLink({
}, [href, appendToCurrentPath, currentPageSlug])
return (
-
+ {
+ onClick(e)
+ if (trackingId) {
+ trackClick(trackingId, trackingParams)
+ }
+ }}
+ {...props}
+ />
)
}
diff --git a/apps/scandic-web/components/ButtonLink/variants.ts b/apps/scandic-web/components/ButtonLink/variants.ts
new file mode 100644
index 000000000..8fd6402b6
--- /dev/null
+++ b/apps/scandic-web/components/ButtonLink/variants.ts
@@ -0,0 +1,7 @@
+import { cva } from "class-variance-authority"
+
+import { withButton } from "@scandic-hotels/design-system/Button"
+
+import styles from "./buttonLink.module.css"
+
+export const variants = cva(styles.buttonLink, withButton({}))
diff --git a/apps/scandic-web/components/ContentType/HotelPage/SidePeeks/Amenities/AccordionAmenities/Accessibility/index.tsx b/apps/scandic-web/components/ContentType/HotelPage/SidePeeks/Amenities/AccordionAmenities/Accessibility/index.tsx
index e8f2e885a..12be9ff2b 100644
--- a/apps/scandic-web/components/ContentType/HotelPage/SidePeeks/Amenities/AccordionAmenities/Accessibility/index.tsx
+++ b/apps/scandic-web/components/ContentType/HotelPage/SidePeeks/Amenities/AccordionAmenities/Accessibility/index.tsx
@@ -30,7 +30,10 @@ export default async function AccessibilityAmenity({
{accessibilityPageUrl && (
{intl.formatMessage({ id: "About accessibility" })}
diff --git a/apps/scandic-web/components/ContentType/HotelPage/SidePeeks/Amenities/AccordionAmenities/Parking/index.tsx b/apps/scandic-web/components/ContentType/HotelPage/SidePeeks/Amenities/AccordionAmenities/Parking/index.tsx
index b6d02a6cb..d485ca2d3 100644
--- a/apps/scandic-web/components/ContentType/HotelPage/SidePeeks/Amenities/AccordionAmenities/Parking/index.tsx
+++ b/apps/scandic-web/components/ContentType/HotelPage/SidePeeks/Amenities/AccordionAmenities/Parking/index.tsx
@@ -30,7 +30,10 @@ export default async function ParkingAmenity({
{parkingPageUrl && (
{intl.formatMessage({ id: "About parking" })}
diff --git a/apps/scandic-web/components/ContentType/HotelPage/SidePeeks/RestaurantBar/RestaurantBarItem/index.tsx b/apps/scandic-web/components/ContentType/HotelPage/SidePeeks/RestaurantBar/RestaurantBarItem/index.tsx
index c77711585..7cda16cb1 100644
--- a/apps/scandic-web/components/ContentType/HotelPage/SidePeeks/RestaurantBar/RestaurantBarItem/index.tsx
+++ b/apps/scandic-web/components/ContentType/HotelPage/SidePeeks/RestaurantBar/RestaurantBarItem/index.tsx
@@ -102,9 +102,10 @@ export default async function RestaurantBarItem({
{bookTableUrl ? (
diff --git a/apps/scandic-web/components/TempDesignSystem/TeaserCard/Sidepeek/index.tsx b/apps/scandic-web/components/TempDesignSystem/TeaserCard/Sidepeek/index.tsx
index f3abf3387..7d2dc9a4c 100644
--- a/apps/scandic-web/components/TempDesignSystem/TeaserCard/Sidepeek/index.tsx
+++ b/apps/scandic-web/components/TempDesignSystem/TeaserCard/Sidepeek/index.tsx
@@ -2,12 +2,12 @@
import { useState } from "react"
+import { Button } from "@scandic-hotels/design-system/Button"
import { MaterialIcon } from "@scandic-hotels/design-system/Icons"
+import ButtonLink from "@/components/ButtonLink"
import JsonToHtml from "@/components/JsonToHtml"
-import Button from "@/components/TempDesignSystem/Button"
-import Link from "../../Link"
import SidePeek from "../../SidePeek"
import styles from "./sidepeek.module.css"
@@ -22,14 +22,13 @@ export default function TeaserCardSidepeek({
const { heading, content, primary_button, secondary_button } = sidePeekContent
return (
-
+