From 1480ce72504bdb350d596b5a7cd6447279820972 Mon Sep 17 00:00:00 2001 From: Vincent Smedinga Date: Mon, 28 Oct 2024 10:20:54 +0100 Subject: [PATCH] =?UTF-8?q?Don=E2=80=99t=20render=20a=20class=20for=20an?= =?UTF-8?q?=20undefined=20value?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/react/src/DescriptionList/DescriptionList.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react/src/DescriptionList/DescriptionList.tsx b/packages/react/src/DescriptionList/DescriptionList.tsx index 65b54b325d..7f63876075 100644 --- a/packages/react/src/DescriptionList/DescriptionList.tsx +++ b/packages/react/src/DescriptionList/DescriptionList.tsx @@ -29,7 +29,7 @@ const DescriptionListRoot = forwardRef( ref={ref} className={clsx( 'ams-description-list', - `ams-description-list--terms-width-${termsWidth}`, + termsWidth && `ams-description-list--terms-width-${termsWidth}`, inverseColor && 'ams-description-list--inverse-color', className, )}