From 43efed8e79382d1ff1b3aa0e293ba6e114dfcfbf Mon Sep 17 00:00:00 2001 From: witt Date: Thu, 3 Sep 2020 09:52:42 +0800 Subject: [PATCH] fix(modal): fix typography and alignment on mobile (#382) * fix(modal): fix layout of modal actions on safari mobile * fix(modal): fix vertical alignment on safari mobile * test(modal): update snapshots * docs: hide menu when modal active * docs(modal): add overlong case --- .../__snapshots__/index.test.tsx.snap | 52 +++++++++---------- components/modal/modal-action.tsx | 1 + components/modal/modal-content.tsx | 2 +- components/modal/modal-subtitle.tsx | 7 ++- components/modal/modal-wrapper.tsx | 7 +-- components/modal/modal.tsx | 6 +-- .../__snapshots__/backdrop.test.tsx.snap | 33 ++++++------ components/shared/__tests__/backdrop.test.tsx | 1 - components/shared/backdrop.tsx | 35 +++++++------ lib/components/menu/menu-sticker.tsx | 2 +- pages/en-us/components/modal.mdx | 45 ++++++++++++++++ 11 files changed, 116 insertions(+), 75 deletions(-) diff --git a/components/modal/__tests__/__snapshots__/index.test.tsx.snap b/components/modal/__tests__/__snapshots__/index.test.tsx.snap index 9ee0b6d..40b6419 100644 --- a/components/modal/__tests__/__snapshots__/index.test.tsx.snap +++ b/components/modal/__tests__/__snapshots__/index.test.tsx.snap @@ -18,9 +18,8 @@ exports[`Modal customization should be supported 1`] = ` }

This is a modal