refactor(material/core): resolve circular dependencies #21110
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hopefully the last set of code changes for the Sass module system migration.
theming/_theming.scss
andtheming/_private.scss
, because they had a circular dependency and sincetheming.scss
could be considered a public API, we can't move the utilities out into a shared file.angular-material-density
mixin to include density mixins individually, instead of going throughangular-material-theme
. The previous approach had transient circular dependencies that will turn into hard errors once we switch to theSass module system. The new approach is in line with what we're doing already inside
angular-material-typography
.@use
instead of@import
. For some reason Sass was having a hard time finding the old ones after the files are migrated to the module system.mat-mdc-private-dialog-structure-overrides
, instead of expecting it to be available as a global variable. This seems like an oversight.Note: Setting as a P2, because it's a blocker for the Sass module system migration. I'm trying to fix all the errors ahead of time so that the final PR consists only of changes made by the migration script.