Skip to content
This repository was archived by the owner on Mar 4, 2020. It is now read-only.
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
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
7 changes: 5 additions & 2 deletions packages/react/src/components/Dialog/Dialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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<ShorthandValue>,
ColorComponentProps {
/**
* Accessibility behavior if overridden by the user.
* @default dialogBehavior
Expand Down Expand Up @@ -93,7 +96,7 @@ class Dialog extends AutoControlledComponent<ReactProps<DialogProps>, DialogStat
static propTypes = {
...commonPropTypes.createCommon({
children: false,
content: true,
content: 'shorthand',
}),
actions: customPropTypes.itemShorthand,
cancelButton: customPropTypes.itemShorthand,
Expand Down