From 3f7255dd9622cb281aa3c366bd1b52b92094b348 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20H=C3=B8egh?= Date: Thu, 23 May 2024 14:36:25 +0200 Subject: [PATCH] docs(Img): correct the docs about the role usage --- .../src/docs/uilib/elements/image.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/dnb-design-system-portal/src/docs/uilib/elements/image.mdx b/packages/dnb-design-system-portal/src/docs/uilib/elements/image.mdx index 1012b2350d8..20cb6a675c1 100644 --- a/packages/dnb-design-system-portal/src/docs/uilib/elements/image.mdx +++ b/packages/dnb-design-system-portal/src/docs/uilib/elements/image.mdx @@ -13,12 +13,12 @@ import { The image element associated with the class `dnb-img` does not have much opinionated styling. It exists more to have a future possibility to optimize and add features. -As of now, the React image "element" (Img) does provide a `figure` element with the `role="img"` and an `img` tag inside. This is mainly to support the [Skeleton](/uilib/components/skeleton) provider. +The React image "element" (Img) does provide a `figure` element with an `img` element inside. This is mainly to support a `caption` text and a [Skeleton](/uilib/components/skeleton). ```jsx import { Img } from '@dnb/eufemia' -render() +render(...) ``` ## Basic image element