diff --git a/CHANGELOG.md b/CHANGELOG.md index 35d67eb989..a0265bcb0d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,6 +20,7 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm ### Fixes - Fix overflowing focus outline for `Grid` items for Teams theme @Bugaa92 ([#1195](https://github.com/stardust-ui/react/pull/1195)) - Fix routing for accessibility documentation @sophieH29 ([#1208](https://github.com/stardust-ui/react/pull/1208)) +- Fix `content` prop type in `Dialog` @layershifter ([#1212](https://github.com/stardust-ui/react/pull/1212)) ### Features - Add `Embed` and `Video` components @stuartlong ([#1108](https://github.com/stardust-ui/react/pull/1108)) diff --git a/packages/react/src/components/Dialog/Dialog.tsx b/packages/react/src/components/Dialog/Dialog.tsx index 23188e01b1..77ed7e294a 100644 --- a/packages/react/src/components/Dialog/Dialog.tsx +++ b/packages/react/src/components/Dialog/Dialog.tsx @@ -23,7 +23,10 @@ import Portal from '../Portal/Portal' import Ref from '../Ref/Ref' import Flex from '../Flex/Flex' -export interface DialogProps extends UIComponentProps, ContentComponentProps, ColorComponentProps { +export interface DialogProps + extends UIComponentProps, + ContentComponentProps, + ColorComponentProps { /** * Accessibility behavior if overridden by the user. * @default dialogBehavior @@ -93,7 +96,7 @@ class Dialog extends AutoControlledComponent, DialogStat static propTypes = { ...commonPropTypes.createCommon({ children: false, - content: true, + content: 'shorthand', }), actions: customPropTypes.itemShorthand, cancelButton: customPropTypes.itemShorthand,