diff --git a/.changeset/solid-cars-care.md b/.changeset/solid-cars-care.md new file mode 100644 index 0000000000..7b0b06025f --- /dev/null +++ b/.changeset/solid-cars-care.md @@ -0,0 +1,5 @@ +--- +"@cloudflare/kumo": patch +--- + +Add JSDoc note to Dialog.Root role prop clarifying alertdialog should not include a header close button diff --git a/packages/kumo-docs-astro/src/components/demos/DialogDemo.tsx b/packages/kumo-docs-astro/src/components/demos/DialogDemo.tsx index 1ff0c5f05c..36dc189e00 100644 --- a/packages/kumo-docs-astro/src/components/demos/DialogDemo.tsx +++ b/packages/kumo-docs-astro/src/components/demos/DialogDemo.tsx @@ -22,7 +22,7 @@ export function DialogBasicDemo() { render={(props) => ( } /> + } />
- Modal Title + Save changes ( )} /> @@ -88,7 +88,7 @@ export function DialogWithActionsDemo() { export function DialogConfirmationDemo() { return ( - + (
- This action cannot be undone. This will permanently delete the project - and all associated data. + This example is using disablePointerDismissal. Try closing this dialog by clicking outside - + it should not close.
( )} /> - + ( + + )} + />
@@ -255,7 +261,7 @@ export function DialogWithComboboxDemo() { render={(props) => ( )} /> - + ( + + )} + /> @@ -311,7 +323,7 @@ export function DialogWithDropdownDemo() { render={(props) => (