Merged in fix/BOOK-408-alt-text-needs-to-be-updated- (pull request #3220)

* fix(BOOK-408): Updated logo aria label
* fix(BOOK-408): Added title for links opening in new tab
* fix(BOOK-408): Added translations handling for title

Approved-by: Anton Gunnarsson
Approved-by: Matilda Landström
This commit is contained in:
Hrishikesh Vaipurkar
2025-11-27 09:40:38 +00:00
parent 1dabd3cdc7
commit 9937dfd002
6 changed files with 43 additions and 9 deletions

View File

@@ -1,4 +1,7 @@
"use client"
import NextLink from "next/link"
import { useIntl } from "react-intl"
import Chip from "@scandic-hotels/design-system/Chip"
import Image from "@scandic-hotels/design-system/Image"
@@ -29,6 +32,7 @@ export default function ContentCard({
className = "",
link,
}: ContentCardProps) {
const intl = useIntl()
const card = (
<article className={`${styles.card} ${className}`}>
<div className={styles.imageContainer}>
@@ -63,6 +67,10 @@ export default function ContentCard({
...(link.openInNewTab && {
target: "_blank",
rel: "noopener noreferrer",
title: intl.formatMessage({
id: "common.linkOpenInNewTab",
defaultMessage: "Opens in a new tab/window",
}),
}),
}