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