From c80c82f5b94fb3d12d1ea6e015471e653621be10 Mon Sep 17 00:00:00 2001 From: Elizabet Oliveira Date: Mon, 24 Oct 2022 19:31:05 +0100 Subject: [PATCH 01/24] [Emotion] Convert `modal` --- src/components/index.scss | 1 - .../__snapshots__/confirm_modal.test.tsx.snap | 40 ++--- .../modal/__snapshots__/modal.test.tsx.snap | 4 +- .../__snapshots__/modal_body.test.tsx.snap | 4 +- .../__snapshots__/modal_footer.test.tsx.snap | 2 +- .../__snapshots__/modal_header.test.tsx.snap | 2 +- .../modal_header_title.test.tsx.snap | 10 +- src/components/modal/_index.scss | 1 - src/components/modal/_modal.scss | 154 ------------------ src/components/modal/confirm_modal.tsx | 9 +- src/components/modal/modal.styles.ts | 92 +++++++++++ src/components/modal/modal.tsx | 12 +- src/components/modal/modal_body.styles.ts | 43 +++++ src/components/modal/modal_body.tsx | 15 +- src/components/modal/modal_footer.styles.ts | 46 ++++++ src/components/modal/modal_footer.tsx | 10 +- src/components/modal/modal_header.styles.ts | 36 ++++ src/components/modal/modal_header.tsx | 10 +- src/components/modal/modal_header_title.tsx | 7 +- src/themes/amsterdam/overrides/_index.scss | 1 - src/themes/amsterdam/overrides/_modal.scss | 3 - 21 files changed, 300 insertions(+), 202 deletions(-) delete mode 100644 src/components/modal/_index.scss delete mode 100644 src/components/modal/_modal.scss create mode 100644 src/components/modal/modal.styles.ts create mode 100644 src/components/modal/modal_body.styles.ts create mode 100644 src/components/modal/modal_footer.styles.ts create mode 100644 src/components/modal/modal_header.styles.ts delete mode 100644 src/themes/amsterdam/overrides/_modal.scss diff --git a/src/components/index.scss b/src/components/index.scss index ced54713a92..8e7a83babab 100644 --- a/src/components/index.scss +++ b/src/components/index.scss @@ -17,7 +17,6 @@ @import 'header/index'; @import 'key_pad_menu/index'; @import 'markdown_editor/index'; -@import 'modal/index'; @import 'notification/index'; @import 'panel/index'; @import 'page/index'; // Page needs to come after Panel for cascade specificity diff --git a/src/components/modal/__snapshots__/confirm_modal.test.tsx.snap b/src/components/modal/__snapshots__/confirm_modal.test.tsx.snap index 6f4d9753a48..7ecb30b1330 100644 --- a/src/components/modal/__snapshots__/confirm_modal.test.tsx.snap +++ b/src/components/modal/__snapshots__/confirm_modal.test.tsx.snap @@ -21,13 +21,13 @@ Array [ >
-
-

- A confirmation modal -

-
+ A confirmation modal +
-
-

- A confirmation modal -

-
+ A confirmation modal +