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(Sidenav): Sidenav not displayed on production build #19473
Comments
I'm not completely sure why it happens, but the problem is that the style override here is turned into |
@crisbeto thanks for your help. I added opacity to get kind of a transparency effect, but I was not aware it was causing this issue. I removed it and the sidenav is working fine. Should this issue be close then? |
This could be something to be fixed by the CLI team since changing the opacity is a totally valid use case. |
I'm sorry, but this issue is not caused by Angular CLI. Kindly follow this issue: cssnano/cssnano#957 As a workaround you can use non percentage based values for opacity between 0-1. Example |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Reproduction
This issue occurs only on production build, on dev build the sidenav is displayed correctly. It happens both if using
ng build --prod
and hosting files on a static server or runningng serve --prod
directly.I have created a git repo for reproduction at https://github.com/GCSDC/sidenav-issue
Steps to reproduce (after cloning repo and
npm install
):ng serve --prod
Expected Behavior
Sidenav contents should be displayed correctly, as it happens on a dev build (using
ng build
orng serve
):Actual Behavior
Sidenav contents are not displayed:
Environment
The text was updated successfully, but these errors were encountered: