From d54fc38899b3ffc87104ed03f5e48be3f02e337c Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Tue, 7 Jun 2022 15:59:48 +0200 Subject: chore: use image title as figure label if no caption is provided --- src/components/molecules/images/responsive-image.tsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/components') diff --git a/src/components/molecules/images/responsive-image.tsx b/src/components/molecules/images/responsive-image.tsx index 4541df8..5373561 100644 --- a/src/components/molecules/images/responsive-image.tsx +++ b/src/components/molecules/images/responsive-image.tsx @@ -49,6 +49,7 @@ const ResponsiveImage: FC = ({ layout, objectFit, target, + title, withBorders, ...props }) => { @@ -59,15 +60,17 @@ const ResponsiveImage: FC = ({ return (
{target ? ( {alt} {caption && ( @@ -78,9 +81,10 @@ const ResponsiveImage: FC = ({ <> {alt} {caption && ( -- cgit v1.2.3