Density in Angular Material components

This Angular application (@angular/material@"16.2.4" and @angular/core@16.2.5) shows how the density theming configuration affects the Angular Material components.

Problem #1 -3 global density crashes compilation

GitHub issue 26613 - Resolved!

Problem #2 mat-label disappears when density < -1

GitHub issue 26579

The mat-label disappears when the density of mat-form-field with appearance="fill" is set to lower than -1.