From 7fb7cb03974037363db3b2d1986e9097ce11bb59 Mon Sep 17 00:00:00 2001 From: Ed Ngai Date: Tue, 12 Dec 2017 14:12:58 -0800 Subject: [PATCH] fix(content): hide overflow of expandable section and accordion content (#2944) --- ui/components/accordion/base/_index.scss | 2 ++ ui/components/expandable-section/base/_index.scss | 2 ++ 2 files changed, 4 insertions(+) diff --git a/ui/components/accordion/base/_index.scss b/ui/components/accordion/base/_index.scss index 5d10ab11e8..d711b28ee8 100644 --- a/ui/components/accordion/base/_index.scss +++ b/ui/components/accordion/base/_index.scss @@ -103,6 +103,7 @@ * @required */ .slds-accordion__content { + overflow: hidden; visibility: hidden; opacity: 0; height: 0; @@ -126,6 +127,7 @@ } > .slds-accordion__content { + overflow: visible; visibility: visible; opacity: 1; height: auto; diff --git a/ui/components/expandable-section/base/_index.scss b/ui/components/expandable-section/base/_index.scss index 1338af7798..1fd803d53d 100644 --- a/ui/components/expandable-section/base/_index.scss +++ b/ui/components/expandable-section/base/_index.scss @@ -62,6 +62,7 @@ * @restrict .slds-section div */ &__content { + overflow: hidden; visibility: hidden; opacity: 0; height: 0; @@ -88,6 +89,7 @@ .slds-section__content { padding-top: $spacing-small; + overflow: visible; visibility: visible; opacity: 1; height: auto;