File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
packages/coreui-react/src/components/modal Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -239,8 +239,9 @@ export const CModal = forwardRef<HTMLDivElement, CModalProps>(
239239 className ,
240240 ) }
241241 tabIndex = { - 1 }
242- { ...( _visible ? { 'aria-modal' : true } : { 'aria-hidden' : 'true' } ) }
243- role = "dialog"
242+ { ...( _visible
243+ ? { 'aria-modal' : true , role : 'dialog' }
244+ : { 'aria-hidden' : 'true' } ) }
244245 style = { {
245246 ...( state !== 'exited' && { display : 'block' } ) ,
246247 } }
@@ -253,9 +254,7 @@ export const CModal = forwardRef<HTMLDivElement, CModalProps>(
253254 scrollable = { scrollable }
254255 size = { size }
255256 >
256- < CModalContent ref = { modalContentRef } >
257- { children }
258- </ CModalContent >
257+ < CModalContent ref = { modalContentRef } > { children } </ CModalContent >
259258 </ CModalDialog >
260259 </ div >
261260 </ CModalContext . Provider >
You can’t perform that action at this time.
0 commit comments