Merged in fix/restore-icon-variant-link (pull request #2340)

fix: restore icon variant for link since inline-flex makes its children inline but not the box itself

Approved-by: Arvid Norlin
This commit is contained in:
Christian Andolf
2025-06-13 10:19:14 +00:00
10 changed files with 17 additions and 10 deletions

View File

@@ -44,7 +44,7 @@ export default async function Destination({
)}
</ul>
{countryUrl && (
<Link href={countryUrl} weight="bold">
<Link href={countryUrl} variant="icon" weight="bold">
{intl.formatMessage(
{
defaultMessage: "View all hotels in {country}",

View File

@@ -46,6 +46,7 @@ export default async function TripAdvisorLink({
return (
<Link
variant="icon"
textDecoration="underline"
color="Text/Interactive/Secondary"
href={tripAdvisorHref}

View File

@@ -77,6 +77,7 @@ export default async function RestaurantBarItem({
href={url}
target="_blank"
textDecoration="underline"
variant="icon"
color="Text/Interactive/Secondary"
>
{name}

View File

@@ -72,6 +72,7 @@ export default async function RestaurantSidebar({
href={url}
color="Text/Interactive/Secondary"
textDecoration="underline"
variant="icon"
>
{name}
<MaterialIcon
@@ -93,7 +94,7 @@ export default async function RestaurantSidebar({
})}
</h3>
</Typography>
<Typography variant="Body/Paragraph/mdRegular" className={styles.text}>
<Typography variant="Body/Paragraph/mdRegular">
<div>
<p>{hotelAddress.streetAddress}</p>
{/* eslint-disable-next-line formatjs/no-literal-string-in-jsx */}
@@ -115,10 +116,7 @@ export default async function RestaurantSidebar({
<>
<Link href={`tel:${phoneNumber}`}>{phoneNumber}</Link>
{hotelAddress.country === Country.Finland ? (
<Typography
variant="Body/Paragraph/mdRegular"
className={styles.text}
>
<Typography variant="Body/Paragraph/mdRegular">
<p>
{intl.formatMessage({
defaultMessage: "Price 0,16 €/min + local call charges",

View File

@@ -60,6 +60,7 @@ export default function MegaMenu({
{seeAllLink?.link ? (
<Link
href={seeAllLink.link.url}
variant="icon"
weight="bold"
onClick={handleNavigate}
>

View File

@@ -100,6 +100,7 @@ export default function ReceiptRoom({
href=""
size="small"
textDecoration="underline"
variant="icon"
>
{intl.formatMessage({
defaultMessage: "Reservation policy",

View File

@@ -420,6 +420,7 @@ export const renderOptions: RenderOptions = {
href={node.attrs.href}
textDecoration="underline"
target="_blank"
variant="icon"
{...props}
>
{next(

View File

@@ -78,7 +78,7 @@ export default async function MembershipCardSlot() {
</span>
</div>
))}
<Link href="#">
<Link href="#" variant="icon">
<MaterialIcon icon="add_circle" color="CurrentColor" />
<Body color="burgundy" textTransform="underlined">
{intl.formatMessage({

View File

@@ -1,8 +1,5 @@
.link {
text-decoration: none;
align-items: center;
display: inline-flex;
gap: var(--Space-x05);
}
.underline {
@@ -47,6 +44,12 @@
}
}
.icon {
align-items: center;
display: inline-flex;
gap: var(--Space-x05);
}
.breadcrumb {
font-family: var(--typography-Footnote-Bold-fontFamily);
font-size: var(--typography-Footnote-Bold-fontSize);

View File

@@ -28,6 +28,7 @@ export const linkVariants = cva(styles.link, {
bold: styles.bold,
},
variant: {
icon: styles.icon,
breadcrumb: styles.breadcrumb,
myPageMobileDropdown: styles.myPageMobileDropdown,
navigation: styles.navigation,