From 3efa6c65926cadcd51fb2be31900b2411fda1162 Mon Sep 17 00:00:00 2001 From: Andrea Cecchi Date: Mon, 9 Dec 2024 13:52:23 +0100 Subject: [PATCH] fix: Set icon title in CardCategory with content-type name --- 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 (