File tree Expand file tree Collapse file tree 2 files changed +0
-88
lines changed Expand file tree Collapse file tree 2 files changed +0
-88
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 3
3
@use ' sass:math' ;
4
4
@use ' sass:meta' ;
5
5
@use ' palette' ;
6
- @use ' ../density/private/compatibility' ;
7
6
8
7
// Whether to enable compatibility with legacy methods for accessing theme information.
9
8
$theme-legacy-inspection-api-compatibility : true !default ;
@@ -481,20 +480,7 @@ $_internals: _mat-theming-internals-do-not-access;
481
480
$_emitted-density : map .merge ($_emitted-density , ($id : $previous-density )) !global;
482
481
$_emitted-typography : map .merge ($_emitted-typography , ($id : $previous-typography )) !global;
483
482
484
- // If duplicate default density styles would be generated for a legacy constructed theme,
485
- // we adjust the density generation so that no density styles are generated by default.
486
- // If no default density styles have been generated yet, we ensure that the styles
487
- // are generated at root. For legacy themes our goal is to generate default density
488
- // styles **once** and at root. This matches the old behavior where density styles were
489
- // part of the base component styles (that did not use view encapsulation).
490
- // TODO: Remove this compatibility logic when the legacy theming API is removed.
491
- compatibility .$private-density-generate-at-root : private-is-legacy-constructed-theme ($theme );
492
- compatibility .$private-density-generate-styles : not $duplicate-legacy-density ;
493
-
494
483
@content ;
495
-
496
- compatibility .$private-density-generate-at-root : false;
497
- compatibility .$private-density-generate-styles : true;
498
484
}
499
485
500
486
// Checks whether the given value resolves to a theme object. Theme objects are always
You can’t perform that action at this time.
0 commit comments