Merged in feat/SW-1969-sidepeek-button (pull request #1617)

fix(SW-1969): update sidepeek buttons

* fix(SW-1969): update sidepeek buttons


Approved-by: Christian Andolf
Approved-by: Fredrik Thorsson
This commit is contained in:
Matilda Landström
2025-03-24 16:13:23 +00:00
parent 710e412414
commit bb0478033f
2 changed files with 12 additions and 20 deletions

View File

@@ -1,6 +1,5 @@
import { ArrowRightIcon } from "@/components/Icons" import ButtonLink from "@/components/ButtonLink"
import AccordionItem from "@/components/TempDesignSystem/Accordion/AccordionItem" import AccordionItem from "@/components/TempDesignSystem/Accordion/AccordionItem"
import Link from "@/components/TempDesignSystem/Link"
import Body from "@/components/TempDesignSystem/Text/Body" import Body from "@/components/TempDesignSystem/Text/Body"
import { getIntl } from "@/i18n" import { getIntl } from "@/i18n"
@@ -27,16 +26,13 @@ export default async function AccessibilityAmenity({
<Body color="uiTextHighContrast">{elevatorPitch}</Body> <Body color="uiTextHighContrast">{elevatorPitch}</Body>
)} )}
{accessibilityPageUrl && ( {accessibilityPageUrl && (
<Link <ButtonLink
href={`/${accessibilityPageUrl}`} href={`/${accessibilityPageUrl}`}
color="burgundy" intent="secondary"
textDecoration="underline"
variant="icon"
appendToCurrentPath appendToCurrentPath
> >
{intl.formatMessage({ id: "About accessibility" })} {intl.formatMessage({ id: "About accessibility" })}
<ArrowRightIcon color="burgundy" /> </ButtonLink>
</Link>
)} )}
</div> </div>
</AccordionItem> </AccordionItem>

View File

@@ -1,7 +1,6 @@
import ButtonLink from "@/components/ButtonLink"
import ParkingInformation from "@/components/ParkingInformation" import ParkingInformation from "@/components/ParkingInformation"
import AccordionItem from "@/components/TempDesignSystem/Accordion/AccordionItem" import AccordionItem from "@/components/TempDesignSystem/Accordion/AccordionItem"
import Button from "@/components/TempDesignSystem/Button"
import Link from "@/components/TempDesignSystem/Link"
import { getIntl } from "@/i18n" import { getIntl } from "@/i18n"
import styles from "./parkingAmenity.module.css" import styles from "./parkingAmenity.module.css"
@@ -29,16 +28,13 @@ export default async function ParkingAmenity({
<ParkingInformation key={data.type} parking={data} /> <ParkingInformation key={data.type} parking={data} />
))} ))}
{parkingPageUrl && ( {parkingPageUrl && (
<Button theme="base" intent="secondary" asChild> <ButtonLink
<Link
href={`/${parkingPageUrl}`} href={`/${parkingPageUrl}`}
color="burgundy" intent="secondary"
weight="bold"
appendToCurrentPath appendToCurrentPath
> >
{intl.formatMessage({ id: "About parking" })} {intl.formatMessage({ id: "About parking" })}
</Link> </ButtonLink>
</Button>
)} )}
</div> </div>
</AccordionItem> </AccordionItem>