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

Regression: Angular 12.0.1 z-index is getting a # inserted when building for production #42206

Closed
glued opened this issue May 20, 2021 · 2 comments

Comments

@glued
Copy link

glued commented May 20, 2021

Bug Report

Affected Package

unknown

Is this a regression?

yes

Yes, the previous version in which this bug was not present was: .... 12.0.0

Description

I have a .scss stylesheet where an element has z-index:999 but when building the application for production, angular converts that to z-index:#999. How? Are you pattern matching against colors? Yes style optimization is turned on in the angular.config

image

Minimal Reproduction

see above

Exception or Error

see above

Your Environment

Angular Version:


Angular CLI: 12.0.1
Node: 14.17.0
Package Manager: npm 6.14.13
OS: darwin x64

Angular: 12.0.1
... animations, cli, common, compiler, compiler-cli, core
... elements, forms, language-service, platform-browser
... platform-browser-dynamic, router, service-worker

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1200.1
@angular-devkit/build-angular   12.0.1
@angular-devkit/core            12.0.1
@angular-devkit/schematics      12.0.1
@angular/cdk                    10.2.7
@angular/fire                   6.1.5
@angular/material               10.2.7
@schematics/angular             12.0.1
ng-packagr                      12.0.0
rxjs                            6.6.7
typescript                      4.2.4

Anything else relevant?


 "sass": "^1.22.7",
 
@JoostK
Copy link
Member

JoostK commented May 20, 2021

Please see angular/angular-cli#20870

@JoostK JoostK closed this as completed May 20, 2021
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Jun 20, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants