Merged in chore/BOOK-708-replace-title-component (pull request #3414)
Chore/BOOK-708 replace title component * chore(BOOK-708): replace title with typography * chore(BOOK-708): replace title with typography * chore(BOOK-708): remove Title from package.json Approved-by: Linus Flood Approved-by: Anton Gunnarsson
This commit is contained in:
@@ -39,6 +39,8 @@
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--Space-x05);
|
||||
text-align: center;
|
||||
color: var(--Text-Inverted);
|
||||
}
|
||||
|
||||
.mobileTitle {
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
import { useIntl } from "react-intl"
|
||||
|
||||
import Image from "@scandic-hotels/design-system/Image"
|
||||
import Title from "@scandic-hotels/design-system/Title"
|
||||
import { Typography } from "@scandic-hotels/design-system/Typography"
|
||||
|
||||
import { HotelDetailsSidePeek } from "../../HotelDetailsSidePeek"
|
||||
@@ -35,24 +34,12 @@ export default function HotelHeader({
|
||||
<div className={styles.wrapper}>
|
||||
<div className={styles.container}>
|
||||
<div className={styles.titleContainer}>
|
||||
<Title
|
||||
as="h1"
|
||||
level="h1"
|
||||
color="white"
|
||||
textAlign="center"
|
||||
className={styles.title}
|
||||
>
|
||||
{hotel.name}
|
||||
</Title>
|
||||
<Title
|
||||
as="h2"
|
||||
level="h1"
|
||||
color="white"
|
||||
className={styles.mobileTitle}
|
||||
textAlign="center"
|
||||
>
|
||||
{hotel.name}
|
||||
</Title>
|
||||
<Typography variant="Title/lg" className={styles.title}>
|
||||
<h1>{hotel.name}</h1>
|
||||
</Typography>
|
||||
<Typography variant="Title/md" className={styles.mobileTitle}>
|
||||
<h1>{hotel.name}</h1>
|
||||
</Typography>
|
||||
<Typography variant="Title/Overline/sm">
|
||||
<div className={styles.address}>{addressStr}</div>
|
||||
</Typography>
|
||||
|
||||
Reference in New Issue
Block a user