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

bug: Opacity attribute prevents shadows rendering correctly. #762

Closed
dload0 opened this issue Jul 4, 2024 · 0 comments · Fixed by #764
Closed

bug: Opacity attribute prevents shadows rendering correctly. #762

dload0 opened this issue Jul 4, 2024 · 0 comments · Fixed by #764
Assignees
Labels
bug 😔 Something isn't working

Comments

@dload0
Copy link
Contributor

dload0 commented Jul 4, 2024

When having a similar setup to the code below, the shadow in the child element will not render.

rect {
    height: "100%",
    width: "100%",
    main_align: "center",
    cross_align: "center",

    opacity: "1", // <- `opacity` attribute in parent element will prevent shadows in child elements from being rendered.

    rect {
        width: "50",
        height: "50",
        background: "black",

        shadow: "0 0 10 5 rgb(0, 0, 0)",
    }
}

As well as this, applying an opacity attribute to the element itself with the shadow will have the same behaviour.

rect {
    width: "50",
    height: "50",
    background: "black",
    
    opacity: "1", // Will still render the component, however the shadow will not render.

    shadow: "0 0 10 5 rgb(0, 0, 0)",
}
@marc2332 marc2332 self-assigned this Jul 4, 2024
@marc2332 marc2332 added the bug 😔 Something isn't working label Jul 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 😔 Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants