From 9c389c93a4de5811843349642bd2b3f05f54c264 Mon Sep 17 00:00:00 2001 From: sarayourfriend <24264157+sarayourfriend@users.noreply.github.com> Date: Tue, 27 Apr 2021 05:16:19 -0700 Subject: [PATCH] components: Remove G2 portal and refactor Popover to no longer use G2 (#31209) * components: Remove G2 portal * components: Update popover to no longer use g2 * components: Update Card snapshots for popover --- .../ui/card/test/__snapshots__/index.js.snap | 24 ++++++------ .../components/src/ui/popover/component.js | 10 ++--- packages/components/src/ui/popover/content.js | 6 +-- .../src/ui/popover/stories/index.js | 6 +-- packages/components/src/ui/popover/styles.js | 9 +++-- .../popover/test/__snapshots__/index.js.snap | 28 +++++++------- .../components/src/ui/popover/test/index.js | 2 +- packages/components/src/ui/portal/README.md | 17 --------- .../components/src/ui/portal/component.js | 37 ------------------- packages/components/src/ui/portal/index.js | 1 - .../components/src/ui/portal/test/index.js | 33 ----------------- packages/components/src/ui/utils/space.ts | 5 ++- .../components/src/utils/config-values.js | 10 ++++- packages/components/src/utils/z-index.js | 1 + 14 files changed, 55 insertions(+), 134 deletions(-) delete mode 100644 packages/components/src/ui/portal/README.md delete mode 100644 packages/components/src/ui/portal/component.js delete mode 100644 packages/components/src/ui/portal/index.js delete mode 100644 packages/components/src/ui/portal/test/index.js create mode 100644 packages/components/src/utils/z-index.js diff --git a/packages/components/src/ui/card/test/__snapshots__/index.js.snap b/packages/components/src/ui/card/test/__snapshots__/index.js.snap index 67e1c030f33b34..f050cf1213e1dc 100644 --- a/packages/components/src/ui/card/test/__snapshots__/index.js.snap +++ b/packages/components/src/ui/card/test/__snapshots__/index.js.snap @@ -11,8 +11,8 @@ Snapshot Diff: title="WordPress.org" />