From 0f5a704ebbd717bd749504780e01788007adb45c Mon Sep 17 00:00:00 2001 From: Mitchell Soares Date: Fri, 6 Sep 2019 10:32:57 -0400 Subject: [PATCH] Fixed inconsistent padding of Modal --- UNRELEASED.md | 2 ++ src/components/Modal/components/Section/Section.scss | 6 +----- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/UNRELEASED.md b/UNRELEASED.md index 650bc540297..ddaedd6ef14 100644 --- a/UNRELEASED.md +++ b/UNRELEASED.md @@ -12,6 +12,8 @@ Use [the changelog guidelines](https://git.io/polaris-changelog-guidelines) to f ### Bug fixes +- Fixed inconsistent padding of sections in `Modal` ([#2072](https://github.com/Shopify/polaris-react/pull/2072)) + ### Documentation ### Development workflow diff --git a/src/components/Modal/components/Section/Section.scss b/src/components/Modal/components/Section/Section.scss index 00e68fe714d..4dc96027e73 100644 --- a/src/components/Modal/components/Section/Section.scss +++ b/src/components/Modal/components/Section/Section.scss @@ -2,11 +2,7 @@ .Section { flex: 0 0 auto; - padding: spacing() spacing(loose); - - &:first-of-type { - padding-top: spacing(loose); - } + padding: spacing(loose); &:not(:last-of-type) { border-bottom: border();