Skip to content

Commit

Permalink
[Docs] Removed EuiOverlayMask onClick prop to close EuiModal
Browse files Browse the repository at this point in the history
  • Loading branch information
TAYTS committed May 12, 2020
1 parent b17fe4d commit 1562383
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions src-docs/src/views/modal/confirm_modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export default () => {

if (isModalVisible) {
modal = (
<EuiOverlayMask onClick={closeModal}>
<EuiOverlayMask>
<EuiConfirmModal
title="Do this thing"
onCancel={closeModal}
Expand All @@ -52,7 +52,7 @@ export default () => {

if (isDestroyModalVisible) {
destroyModal = (
<EuiOverlayMask onClick={closeDestroyModal}>
<EuiOverlayMask>
<EuiConfirmModal
title="Do this destructive thing"
onCancel={closeDestroyModal}
Expand All @@ -72,7 +72,7 @@ export default () => {

if (isEmptyModalVisible) {
emptyModal = (
<EuiOverlayMask onClick={closeEmptyModal}>
<EuiOverlayMask>
<EuiConfirmModal
title="Do this thing"
onCancel={closeEmptyModal}
Expand All @@ -89,7 +89,7 @@ export default () => {

if (isButtonDisabledModalVisible) {
buttonDisabledModal = (
<EuiOverlayMask onClick={closeButtonDisabledModal}>
<EuiOverlayMask>
<EuiConfirmModal
title="My button is disabled"
onCancel={closeButtonDisabledModal}
Expand Down
2 changes: 1 addition & 1 deletion src-docs/src/views/modal/modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export default () => {

if (isModalVisible) {
modal = (
<EuiOverlayMask onClick={closeModal}>
<EuiOverlayMask>
<EuiModal onClose={closeModal} initialFocus="[name=popswitch]">
<EuiModalHeader>
<EuiModalHeaderTitle>Modal title</EuiModalHeaderTitle>
Expand Down
2 changes: 1 addition & 1 deletion src-docs/src/views/modal/overflow_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export default () => {

if (isModalVisible) {
modal = (
<EuiOverlayMask onClick={closeModal}>
<EuiOverlayMask>
<EuiModal onClose={closeModal}>
<EuiModalHeader>
<EuiModalHeaderTitle>Overflow test</EuiModalHeaderTitle>
Expand Down

0 comments on commit 1562383

Please sign in to comment.