Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)


Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion packages/react/package.json
Original file line number Diff line number Diff line change
@@ -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/",
Expand Down
16 changes: 16 additions & 0 deletions packages/react/src/components/Dialog/Dialog.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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(
<Dialog {...defaultProps} forceAction>
Test Dialog
</Dialog>
);

expect(consoleWarn).not.toHaveBeenCalled();

consoleWarn.mockRestore();
});

test('should render heading from text', () => {
render(
<Dialog {...defaultProps} heading="title">
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/components/Dialog/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ const Dialog = forwardRef<HTMLDivElement, DialogProps>(
? heading.text
: heading}
</DialogHeading>
<DialogCloseButton />
{!forceAction ? <DialogCloseButton /> : null}
</DialogHeader>
) : null}
{children}
Expand Down
2 changes: 1 addition & 1 deletion packages/styles/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down