bring back section rule, as this could be solved better

This commit is contained in:
Dimitar Nanov 2018-10-21 11:04:42 +03:00 committed by Roman Hotsiy
parent 2f34b8ebaf
commit 5addc21cd8
No known key found for this signature in database
GPG Key ID: 5CB7B3ACABA57CB0

View File

@ -129,7 +129,8 @@ export const MenuItemLabel = styled.label.attrs((props: MenuItemLabelType) => ({
color: ${props => (props.active ? props.theme.colors.primary.main : props.theme.menu.textColor)};
margin: 0;
padding: 12.5px ${props => props.theme.spacing.unit * 4}px;
${({ depth, theme }) => (depth > 1 && 'padding-left: ' + theme.spacing.unit * 8 + 'px;') || ''}
${({ depth, type, theme }) =>
(type === 'section' && depth > 1 && 'padding-left: ' + theme.spacing.unit * 8 + 'px;') || ''}
display: flex;
justify-content: space-between;
font-family: ${props => props.theme.typography.headings.fontFamily};