Merged in fix/design-system-remove-preamble (pull request #3153)

remove deprecated preamble, replace with typography

* remove deprecated preamble, replace with typography


Approved-by: Linus Flood
This commit is contained in:
Bianca Widstam
2025-11-13 13:56:22 +00:00
parent 0a513fce9c
commit f52d210240
8 changed files with 20 additions and 111 deletions

View File

@@ -3,6 +3,10 @@
overflow: hidden;
height: 100vh;
}
.bodyText {
text-align: center;
color: var(--Base-Text-Inverted);
}
.container::after {
content: "";

View File

@@ -1,8 +1,8 @@
import Image from "@scandic-hotels/design-system/Image"
import { OldDSButton as Button } from "@scandic-hotels/design-system/OldDSButton"
import Link from "@scandic-hotels/design-system/OldDSLink"
import Preamble from "@scandic-hotels/design-system/Preamble"
import Title from "@scandic-hotels/design-system/Title"
import { Typography } from "@scandic-hotels/design-system/Typography"
import BiroScript from "@/components/TempDesignSystem/Text/BiroScript"
@@ -44,9 +44,9 @@ export default function FullWidthCampaign({ content }: FullWidthCampaignProps) {
>
{content.heading}
</Title>
<Preamble color="baseText" textAlign="center">
{content.body_text}
</Preamble>
<Typography className={styles.bodyText} variant="Body/Lead text">
<p>{content.body_text}</p>
</Typography>
<div className={styles.buttons}>
{content.has_primary_button ? (
<Button

View File

@@ -1,7 +1,6 @@
import { cx } from "class-variance-authority"
import { Suspense } from "react"
import Preamble from "@scandic-hotels/design-system/Preamble"
import { Typography } from "@scandic-hotels/design-system/Typography"
import { TrackingSDK } from "@scandic-hotels/tracking/TrackingSDK"
@@ -48,7 +47,9 @@ export default async function LoyaltyPage() {
<h1>{loyaltyPage.heading}</h1>
</Typography>
{loyaltyPage.preamble ? (
<Preamble>{loyaltyPage.preamble}</Preamble>
<Typography variant="Body/Lead text">
<p>{loyaltyPage.preamble}</p>
</Typography>
) : null}
{heroImage ? (

View File

@@ -1,5 +1,5 @@
import Preamble from "@scandic-hotels/design-system/Preamble"
import Title, { type HeadingProps } from "@scandic-hotels/design-system/Title"
import { Typography } from "@scandic-hotels/design-system/Typography"
import SectionLink from "../Link"
@@ -41,7 +41,11 @@ export default function SectionHeader({
>
{title}
</Title>
{preamble && <Preamble className={styles.preamble}>{preamble}</Preamble>}
{preamble && (
<Typography variant="Body/Lead text" className={styles.preamble}>
<p>{preamble}</p>
</Typography>
)}
<SectionLink link={link} variant="desktop" />
</header>
)