diff --git a/components/context/ProductLandingContext.tsx b/components/context/ProductLandingContext.tsx index a7f21a98ab..8d77096f83 100644 --- a/components/context/ProductLandingContext.tsx +++ b/components/context/ProductLandingContext.tsx @@ -51,6 +51,7 @@ export type ProductLandingContextT = { featuredArticles: Array<{ label: string // Guides viewAllHref?: string // If provided, adds a "View All ->" to the header + viewAllTitleText?: string // Adds 'title' attribute text for the "View All" href articles: Array }> changelogUrl?: string diff --git a/components/landing/ArticleList.tsx b/components/landing/ArticleList.tsx index 916d4645bc..39ff055cf9 100644 --- a/components/landing/ArticleList.tsx +++ b/components/landing/ArticleList.tsx @@ -11,17 +11,27 @@ import { BumpLink } from 'components/ui/BumpLink' export type ArticleListPropsT = { title?: string viewAllHref?: string + viewAllTitleText?: string articles: Array } -export const ArticleList = ({ title, viewAllHref, articles }: ArticleListPropsT) => { +export const ArticleList = ({ + title, + viewAllHref, + viewAllTitleText, + articles, +}: ArticleListPropsT) => { return ( <> {title && (

{title}

{viewAllHref && ( - + View all )} diff --git a/components/landing/FeaturedArticles.tsx b/components/landing/FeaturedArticles.tsx index 8b692b3fb3..1de819efef 100644 --- a/components/landing/FeaturedArticles.tsx +++ b/components/landing/FeaturedArticles.tsx @@ -20,6 +20,7 @@ export const FeaturedArticles = () => {
@@ -31,6 +32,7 @@ export const FeaturedArticles = () => { { return { title: link.title,