fix(BOOK-770): Re added max-width to preamble on collection pages

Approved-by: Bianca Widstam
This commit is contained in:
Erik Tiekstra
2026-01-28 12:03:05 +00:00
parent ead34c07ee
commit 1bb1a7e139
2 changed files with 6 additions and 8 deletions

View File

@@ -59,18 +59,16 @@
justify-items: start;
}
.intro {
display: grid;
max-width: var(--max-width-text-block);
gap: var(--Space-x3);
}
.heading {
color: var(--Text-Heading);
text-wrap: balance;
hyphens: auto;
}
.preamble {
max-width: var(--max-width-text-block);
}
.content {
display: flex;
flex-direction: column;

View File

@@ -101,7 +101,7 @@ export async function CollectionPage() {
<div className={styles.headerContent}>
{showHero ? (
<Typography variant="Body/Lead text">
<p>{header.preamble}</p>
<p className={styles.preamble}>{header.preamble}</p>
</Typography>
) : (
<>
@@ -109,7 +109,7 @@ export async function CollectionPage() {
<h1 className={styles.heading}>{header.heading}</h1>
</Typography>
<Typography variant="Body/Lead text">
<p>{header.preamble}</p>
<p className={styles.preamble}>{header.preamble}</p>
</Typography>
{header.top_primary_button?.url ? (
<ButtonLink