File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
packages/coreui-react/src/components/modal Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ export interface CModalProps extends HTMLAttributes<HTMLDivElement> {
3737 duration ?: number
3838 /**
3939 * Puts the focus on the modal when shown.
40- *
40+ *
4141 * @since v4.10.0
4242 */
4343 focus ?: boolean
@@ -239,10 +239,12 @@ export const CModal = forwardRef<HTMLDivElement, CModalProps>(
239239 className ,
240240 ) }
241241 tabIndex = { - 1 }
242+ { ...( _visible ? { 'aria-modal' : true } : { 'aria-hidden' : 'true' } ) }
242243 role = "dialog"
243244 style = { {
244245 ...( state !== 'exited' && { display : 'block' } ) ,
245246 } }
247+ { ...rest }
246248 ref = { forkedRef }
247249 >
248250 < CModalDialog
@@ -251,7 +253,7 @@ export const CModal = forwardRef<HTMLDivElement, CModalProps>(
251253 scrollable = { scrollable }
252254 size = { size }
253255 >
254- < CModalContent { ... rest } ref = { modalContentRef } >
256+ < CModalContent ref = { modalContentRef } >
255257 { children }
256258 </ CModalContent >
257259 </ CModalDialog >
You can’t perform that action at this time.
0 commit comments