From 6abb41a1bbead714d3ca5960ec250892e9eb081b Mon Sep 17 00:00:00 2001 From: Henry Wilkinson Date: Mon, 8 Jun 2026 23:08:15 -0400 Subject: [PATCH 1/3] Make alert description optional --- packages/demo/src/content/components/alert.mdx | 2 +- packages/ui/src/components/alert/alert.tsx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/demo/src/content/components/alert.mdx b/packages/demo/src/content/components/alert.mdx index ba9cb19..b965298 100644 --- a/packages/demo/src/content/components/alert.mdx +++ b/packages/demo/src/content/components/alert.mdx @@ -116,6 +116,6 @@ The `success`, `warning`, and `danger` variants apply a default icon automatical | Name | Description | Type | Default | Required | | ------------- | ----------------------------------------------------------------------------- | ---------------------------------------------------- | --------------- | -------- | | `title` | The alert heading, rendered as an `

` | `string` | — | ✅ | -| `description` | The alert body text, rendered as a `

` | `string` | — | ✅ | +| `description` | The alert body text, rendered as a `

` | `string` , `ReactNode` | — | ❌ | | `variant` | The visual style of the alert | `primary`, `neutral`, `success`, `warning`, `danger` | `primary` | ❌ | | `icon` | Overrides the variant's default icon. Lucide name, element, or `null` to hide | `string`, `ReactElement`, `null` | Variant default | ❌ | diff --git a/packages/ui/src/components/alert/alert.tsx b/packages/ui/src/components/alert/alert.tsx index 3095586..00d1c92 100644 --- a/packages/ui/src/components/alert/alert.tsx +++ b/packages/ui/src/components/alert/alert.tsx @@ -30,7 +30,7 @@ const defaultVariantIcons: Record = { interface AlertProps extends React.HTMLAttributes, VariantProps { title: string; - description: string; + description?: string | React.ReactNode; icon?: React.ReactElement | string | null; } @@ -61,7 +61,7 @@ const Alert = React.forwardRef( /> ) : null}

{title}

-

{description}

+ {description ?

{description}

: null} ); } From 53386a682b2ea74c445f1c03780ff9e707053f8b Mon Sep 17 00:00:00 2001 From: Henry Wilkinson Date: Mon, 8 Jun 2026 23:08:30 -0400 Subject: [PATCH 2/3] Update package.json --- packages/ui/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/ui/package.json b/packages/ui/package.json index c119f8e..93b1b25 100644 --- a/packages/ui/package.json +++ b/packages/ui/package.json @@ -2,7 +2,7 @@ "name": "@eqtylab/equality", "description": "EQTYLab's component and token-based design system", "homepage": "https://equality.eqtylab.io/", - "version": "2.0.0", + "version": "2.0.1", "license": "Apache-2.0", "keywords": [ "component library", From a957120ee4168afaa4922d5d91dc594df5f6a4f6 Mon Sep 17 00:00:00 2001 From: Henry Wilkinson Date: Mon, 8 Jun 2026 23:09:21 -0400 Subject: [PATCH 3/3] Apply suggestion from @Shrinks99 --- packages/demo/src/content/components/alert.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/demo/src/content/components/alert.mdx b/packages/demo/src/content/components/alert.mdx index b965298..9ff08a6 100644 --- a/packages/demo/src/content/components/alert.mdx +++ b/packages/demo/src/content/components/alert.mdx @@ -116,6 +116,6 @@ The `success`, `warning`, and `danger` variants apply a default icon automatical | Name | Description | Type | Default | Required | | ------------- | ----------------------------------------------------------------------------- | ---------------------------------------------------- | --------------- | -------- | | `title` | The alert heading, rendered as an `

` | `string` | — | ✅ | -| `description` | The alert body text, rendered as a `

` | `string` , `ReactNode` | — | ❌ | +| `description` | The alert body text, rendered as a `

` | `string`, `ReactNode` | — | ❌ | | `variant` | The visual style of the alert | `primary`, `neutral`, `success`, `warning`, `danger` | `primary` | ❌ | | `icon` | Overrides the variant's default icon. Lucide name, element, or `null` to hide | `string`, `ReactElement`, `null` | Variant default | ❌ |