Skip to content

Commit

Permalink
Allow core Section container component to be decorated
Browse files Browse the repository at this point in the history
This allows to add absolute positionated decorations.

GH-117
  • Loading branch information
arcticicestudio committed Feb 2, 2019
1 parent 128651b commit 72e46f3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/containers/core/Section/Section.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ const variants = {
const Section = styled.section`
background-color: ${({ variant }) => variants[variant]};
transition: background-color ${motion.speed.duration.transition.base.themeModeSwitch}ms ease-in-out;
position: ${({ decorated }) => decorated && "relative"};
`;

Section.propTypes = {
Expand Down

0 comments on commit 72e46f3

Please sign in to comment.