Skip to content

Commit

Permalink
fix(disclosure): add a background color to disclosure content (#1454)
Browse files Browse the repository at this point in the history
* fix(disclosure): add a background color to disclosure content

* chore: changeset
  • Loading branch information
SiTaggart committed May 17, 2021
1 parent fd6cef8 commit 46495f4
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .changeset/poor-insects-repeat.md
@@ -0,0 +1,6 @@
---
'@twilio-paste/disclosure': patch
'@twilio-paste/core': patch
---

Add a background color to disclosure content for when it is placed on top of a background color that is not the body color
14 changes: 14 additions & 0 deletions .storybook/preview.js
Expand Up @@ -93,11 +93,25 @@ export const decorators = [
<Story />
</Box>
</Theme.Provider>
<Theme.Provider theme="default">
<Box backgroundColor="colorBackgroundBody" color="colorText" padding="space20">
<Box margin="space40" padding="space40" backgroundColor="colorBackground">
<Story />
</Box>
</Box>
</Theme.Provider>
<Theme.Provider theme="dark">
<Box backgroundColor="colorBackgroundBody" color="colorText" padding="space80">
<Story />
</Box>
</Theme.Provider>
<Theme.Provider theme="dark">
<Box backgroundColor="colorBackgroundBody" color="colorText" padding="space20">
<Box margin="space40" padding="space40" backgroundColor="colorBackground">
<Story />
</Box>
</Box>
</Theme.Provider>
</Stack>
</>
);
Expand Down
Expand Up @@ -27,6 +27,7 @@ const DisclosureContent = React.forwardRef<HTMLDivElement, DisclosureContentProp
{...disclosure}
{...safelySpreadBoxProps(props)}
as={AnimatedDisclosureContent}
backgroundColor="colorBackgroundBody"
padding="space50"
ref={ref}
style={{
Expand Down

0 comments on commit 46495f4

Please sign in to comment.