File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,10 @@ export type ModalProps = {
1616 size ?: "small" | "medium" | "large" ;
1717 title : ReactNode ;
1818 titleAs ?: "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "p" | "div" ;
19- titleProps ?: React . DetailedHTMLProps < React . HTMLAttributes < HTMLHeadingElement > , HTMLHeadingElement > ;
19+ titleProps ?: React . DetailedHTMLProps <
20+ React . HTMLAttributes < HTMLHeadingElement > ,
21+ HTMLHeadingElement
22+ > ;
2023 children : ReactNode ;
2124 /** Default: true */
2225 concealingBackdrop ?: boolean ;
@@ -102,7 +105,10 @@ const Modal = memo(
102105 < TitleTag
103106 id = { titleId }
104107 { ...titleProps }
105- className = { cx ( titleProps . className , fr . cx ( "fr-modal__title" ) ) }
108+ className = { cx (
109+ titleProps ?. className ,
110+ fr . cx ( "fr-modal__title" )
111+ ) }
106112 >
107113 { iconId !== undefined && (
108114 < span
You can’t perform that action at this time.
0 commit comments