From e84a9e2d38f064c3139afdf37961e83c47cdb041 Mon Sep 17 00:00:00 2001 From: Akira Sudoh Date: Wed, 15 Jan 2020 14:35:15 +0900 Subject: [PATCH] fix(modal): fix modal content padding for regular size Fixes #4790. --- packages/components/src/components/modal/_modal.scss | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/components/src/components/modal/_modal.scss b/packages/components/src/components/modal/_modal.scss index 4833a115eda8..b04cf6c1f6fc 100644 --- a/packages/components/src/components/modal/_modal.scss +++ b/packages/components/src/components/modal/_modal.scss @@ -90,6 +90,10 @@ .#{$prefix}--modal-content__regular-content { padding-right: 20%; } + + .#{$prefix}--modal-content--with-form { + padding-right: $spacing-05; // Override for `.#{$prefix}--modal-content` + } } @include carbon--breakpoint(lg) { @@ -115,10 +119,6 @@ .#{$prefix}--modal-content--with-form { padding-right: $spacing-05; - - @include carbon--breakpoint(md) { - padding-right: $spacing-05; // Override for `.#{$prefix}--modal-content` - } } .#{$prefix}--modal-container--xs {