I am currently facing an issue with a boolean property that is set to true
. Despite adding the following code to my Styled Component, the expected styles are not being applied. I suspect it may be a syntax error since even when I explicitly set shouldIndentLabel
in this component, the styles fail to render?
const CustomText = styled.p`
font-weight: 300px;
display: inline-block;
${({ shouldIndentLabel }) =>
shouldIndentLabel &&
css`
margin-left: 30px;
`}
`;