From 4c35b9050ebc699200d7ff1ea8925a5c0e40c42d Mon Sep 17 00:00:00 2001 From: Andrea Cecchi Date: Fri, 20 Dec 2024 10:59:54 +0100 Subject: [PATCH] fix: set icon title in CardCategory with content-type name (#831) --- src/components/ItaliaTheme/Cards/CardCategory.jsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/components/ItaliaTheme/Cards/CardCategory.jsx b/src/components/ItaliaTheme/Cards/CardCategory.jsx index 49dfc8582..7d675752f 100644 --- a/src/components/ItaliaTheme/Cards/CardCategory.jsx +++ b/src/components/ItaliaTheme/Cards/CardCategory.jsx @@ -38,9 +38,8 @@ const CardCategory = (props) => { const categoryText = !href && children && ( {children} ); - const categoryIcon = iconName && ( - - ); + const iconTitle = rest.title || intl.formatMessage(messages.categoryIcon); + const categoryIcon = iconName && ; return (