Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Breaks layout when using nested selectors from styled-components #644

Open
Artem29383 opened this issue Aug 3, 2022 · 1 comment
Open
Assignees

Comments

@Artem29383
Copy link

Artem29383 commented Aug 3, 2022

Styles stop working when inside styled you try to style a nested element
Style border-top for InnerContainer not working

const InnerContainer = styled.div'
    align-items: center;
    display: flex;
    justify-content: space-between;
    padding: 16px 0;
';

const Container = styled.div'
    padding: 0 24px;

    & + & {
        ${InnerContainer} {
            border-top: 1px solid ${theme.palette.bg.level3};
        }
    }
';

image

image

Expected: Style border-top for InnerContainer working.

@Igorbek Igorbek self-assigned this Jan 22, 2023
@Igorbek
Copy link
Owner

Igorbek commented Jun 5, 2023

@Artem29383 I could not reproduce the issue. You might have some custom settings for the display name that takes into account the filename and doesn't translate it correctly.

Please share your settings for the transformer if you need an assistance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants