fix(BOOK-151): Added correct background color to all hotels section on destination overview page

Approved-by: Matilda Landström
This commit is contained in:
Erik Tiekstra
2025-09-11 08:41:17 +00:00
parent 7dee6d5083
commit 136610a51a
3 changed files with 24 additions and 23 deletions

View File

@@ -1,11 +1,17 @@
.container { .container {
width: var(--max-width-content);
margin: 0 auto;
display: grid; display: grid;
gap: var(--Spacing-x4); gap: var(--Space-x4);
padding: var(--Spacing-x5) 0 var(--Spacing-x7); padding: var(--Space-x5) 0 var(--Space-x7);
}
.heading {
color: var(--Text-Heading);
} }
@media screen and (min-width: 768px) { @media screen and (min-width: 768px) {
.container { .container {
gap: var(--Spacing-x7); gap: var(--Space-x7);
} }
} }

View File

@@ -1,4 +1,4 @@
import Title from "@scandic-hotels/design-system/Title" import { Typography } from "@scandic-hotels/design-system/Typography"
import { getDestinationsList } from "@/lib/trpc/memoizedRequests" import { getDestinationsList } from "@/lib/trpc/memoizedRequests"
@@ -18,11 +18,13 @@ export default async function HotelsSection() {
return ( return (
<section className={styles.container}> <section className={styles.container}>
<Title level="h4" as="h2" textAlign="center"> <Typography variant="Title/md">
{intl.formatMessage({ <h4 className={styles.heading}>
defaultMessage: "Explore all our hotels", {intl.formatMessage({
})} defaultMessage: "Explore all our hotels",
</Title> })}
</h4>
</Typography>
<DestinationsList destinations={destinations} /> <DestinationsList destinations={destinations} />
</section> </section>
) )

View File

@@ -15,37 +15,30 @@
} }
.main { .main {
display: grid; padding: var(--Space-x7) 0 var(--Space-x9);
gap: var(--Spacing-x9);
padding: var(--Spacing-x7) 0 var(--Spacing-x9);
background-color: var(--Base-Surface-Primary-light-Normal);
} }
.blocks { .blocks {
display: grid; display: grid;
gap: var(--Spacing-x9); gap: var(--Space-x9);
width: 100%; width: var(--max-width-content);
max-width: var(--max-width-content);
margin: 0 auto; margin: 0 auto;
} }
.hotelsAccordions { .hotelsAccordions {
width: 100%; background-color: var(--Background-Primary);
max-width: var(--max-width-content);
margin: 0 auto;
} }
.headerContainer { .headerContainer {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: center;
gap: var(--Space-x4); gap: var(--Space-x4);
padding: var(--Space-x4) var(--Space-x2); padding: var(--Space-x4) var(--Space-x2);
background: var(--Surface-Secondary-Default); background-color: var(--Base-Surface-Subtle-Normal);
align-items: center;
.heading { .heading {
color: var(--Text-Interactive-Default); color: var(--Text-Heading);
text-align: center; text-align: center;
} }