Skip to content

Commit 275e2e9

Browse files
authored
chore(Modal): fixed Props type to use DialogHTMLAttributes (#459)
* feat(Modal): added ariaHidden to Modal component Props. (#456) * fix(Modal): fixed Props type to use DialogHTMLAttributes * refactor: remove ModalLegacyProps as it is not used
1 parent 9e5064d commit 275e2e9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Modal/Modal.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ import { IComponentBaseProps } from '../types'
77
import ModalActions from './ModalActions'
88
import ModalBody from './ModalBody'
99
import ModalHeader from './ModalHeader'
10-
import ModalLegacy, { ModalProps as ModalLegacyProps } from './ModalLegacy'
10+
import ModalLegacy from './ModalLegacy'
1111

12-
export type ModalProps = React.HTMLAttributes<HTMLDialogElement> &
12+
export type ModalProps = React.DialogHTMLAttributes<HTMLDialogElement> &
1313
IComponentBaseProps & {
1414
open?: boolean
1515
responsive?: boolean

0 commit comments

Comments
 (0)