diff --git a/CHANGELOG.md b/CHANGELOG.md index e4188e81e..34abab680 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,13 @@ All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. +### [6.25.2](https://github.com/dequelabs/cauldron/compare/v6.25.1...v6.25.2) (2026-02-06) + + +### Bug Fixes + +* remove dialog close button warning for prop-based dialogs ([#2228](https://github.com/dequelabs/cauldron/issues/2228)) ([e96faec](https://github.com/dequelabs/cauldron/commit/e96faec4a4194dd156a305b24ce32593aeb21c3d)) + ### [6.25.1](https://github.com/dequelabs/cauldron/compare/v6.25.0...v6.25.1) (2026-02-05) diff --git a/package.json b/package.json index e5a06a29c..0881f24b7 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "cauldron", "private": true, - "version": "6.25.1", + "version": "6.25.2", "license": "MPL-2.0", "scripts": { "clean": "rimraf dist docs/dist", diff --git a/packages/react/package.json b/packages/react/package.json index f6bc70220..425ba9746 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -1,6 +1,6 @@ { "name": "@deque/cauldron-react", - "version": "6.25.1", + "version": "6.25.2", "license": "MPL-2.0", "description": "Fully accessible react components library for Deque Cauldron", "homepage": "https://cauldron.dequelabs.com/", diff --git a/packages/react/src/components/Dialog/Dialog.test.tsx b/packages/react/src/components/Dialog/Dialog.test.tsx index f5d5c2a85..9f7bb1c09 100644 --- a/packages/react/src/components/Dialog/Dialog.test.tsx +++ b/packages/react/src/components/Dialog/Dialog.test.tsx @@ -189,6 +189,22 @@ test('should not render close button when forceAction is true', () => { ).not.toBeInTheDocument(); }); +test('should not warn when using built-in heading with forceAction', () => { + const consoleWarn = jest + .spyOn(console, 'warn') + .mockImplementation(() => null); + + render( + + Test Dialog + + ); + + expect(consoleWarn).not.toHaveBeenCalled(); + + consoleWarn.mockRestore(); +}); + test('should render heading from text', () => { render( diff --git a/packages/react/src/components/Dialog/index.tsx b/packages/react/src/components/Dialog/index.tsx index 5a8e5d6d2..8dc344455 100644 --- a/packages/react/src/components/Dialog/index.tsx +++ b/packages/react/src/components/Dialog/index.tsx @@ -190,7 +190,7 @@ const Dialog = forwardRef( ? heading.text : heading} - + {!forceAction ? : null} ) : null} {children} diff --git a/packages/styles/package.json b/packages/styles/package.json index 988083c33..91757c10c 100644 --- a/packages/styles/package.json +++ b/packages/styles/package.json @@ -1,6 +1,6 @@ { "name": "@deque/cauldron-styles", - "version": "6.25.1", + "version": "6.25.2", "license": "MPL-2.0", "description": "deque cauldron pattern library styles", "repository": "https://github.com/dequelabs/cauldron",