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

PageLayout header flashes default background Image before provided background Image #178

Open
HaleyWardo opened this issue Aug 4, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@HaleyWardo
Copy link
Contributor

When providing a background image and refreshing the page, the default background image flashes before rendering the provided backgroundImage.

background.mov

I tried this:

In backgroundCover styles, I remove the background style and added the background color.
backgroundColor: theme.palette.primary.main

Then in the inline style I updated it to this.

{
    backgroundImage: backgroundImage
     ? `url(${backgroundImage})`
     : `url(${PageLayoutDefaultHero})`,
}

But no luck. I wonder if there is some lag in ConditionalWrapper and the styles are painting before the inline styles. 🤷‍♀️

@HaleyWardo HaleyWardo added the bug Something isn't working label Aug 4, 2021
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

No branches or pull requests

1 participant