Added title prop to body section

This commit is contained in:
YourWishes committed 2018-03-18 11:03:36 +11:00
1 parent 7e37b639c1
commit 9be3278139
2 files changed
+6

No files matched your search

@@ -21,8 +21,11 @@ class BodySection extends React.Component {
return (
<Section section="body" className={this.props.className}>
<div className="c-section--style-body__inner">
{ this.props.title }
<div className="c-body-section__wrapper">
{this.props.children}
</div>
</div>
</Section>
)
}
@@ -12,6 +12,9 @@
*/
.c-section--style-body__inner {
background: $s-color--background-default;
}
.c-body-section__wrapper {
padding: 1em;
}