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

opacity value stays as 0 in light mode on production build (works find in dev) Gatsby / MUI based project #24

Open
kirill-develops opened this issue Oct 24, 2022 · 1 comment

Comments

@kirill-develops
Copy link

I have a Gatsby / MUI-based project running here that for some reason in light mode doesn't change the opacity:0 to opacity:1. It does work correctly in dark mode. The repo can be found here

I'm using mui-image and my component looks like this:

<Image
    src={data?.flags?.svg}
    alt={`${data?.name?.common} flag`}
    sx={{ aspectRatio: '7/4' }}
    loading="lazy"
    fit="cover"
/>
@narviii
Copy link

narviii commented Apr 23, 2023

Same issue with next.js/MUI. If i change code and save(no page reload) it works fine, if I reload - opacity is zero.

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