diff --git a/packages/components/src/modal/index.js b/packages/components/src/modal/index.js index 0f5da90efc2401..aadfb0ec5e337b 100644 --- a/packages/components/src/modal/index.js +++ b/packages/components/src/modal/index.js @@ -25,6 +25,7 @@ import { closeSmall } from '@wordpress/icons'; */ import * as ariaHelper from './aria-helper'; import Button from '../button'; +import StyleProvider from '../style-provider'; // Used to count the number of open modals. let openModalCount = 0; @@ -112,57 +113,68 @@ export default function Modal( { ) } onKeyDown={ handleEscapeKeyDown } > -
-
-
-
- { icon && ( - - { icon } - - ) } - { title && ( -

- { title } -

+ +
+
+
+
+ { icon && ( + + { icon } + + ) } + { title && ( +

+ { title } +

+ ) } +
+ { isDismissible && ( +
- { isDismissible && ( -
- { children }
-
+
, document.body );